Skip to content

Instantly share code, notes, and snippets.

@stack72
Created January 15, 2016 16:30
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save stack72/e5ccf1bb2bc5da484712 to your computer and use it in GitHub Desktop.
zookeeper-data-directory=/opt/zookeeper/snapshots
zookeeper-install-directory=/opt/zookeeper
zookeeper-log-directory=/opt/zookeeper/transactions
log-index-directory=/opt/zookeeper/transactions
cleanup-period-ms=300000
check-ms=30000
backup-period-ms=600000
client-port=2181
cleanup-max-files=20
backup-max-store-ms=21600000
connect-port=2888
backup-extra=throttle\=&bucket-name\={{ zk_s3_bucket_name }}&key-prefix\={{ ansible_ec2_placement_region }}&max-retries\=4&retry-sleep-ms\=30000
observer-threshold=0
election-port=3888
zoo-cfg-extra=tickTime\=2000&initLimit\=10&syncLimit\=5&quorumListenOnAllIPs\=true
auto-manage-instances-settling-period-ms=0
auto-manage-instances=1
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>exhibitor</groupId>
<artifactId>exhibitor</artifactId>
<version>{{ exhibitor_version }}</version>
<dependencies>
<dependency>
<groupId>com.netflix.exhibitor</groupId>
<artifactId>exhibitor-standalone</artifactId>
<version>{{ exhibitor_version }}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>com.netflix.exhibitor.application.ExhibitorMain</Main-Class>
<Implementation-Version>{{ exhibitor_version }}</Implementation-Version>
</manifestEntries>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<id>zookeeper</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
description "Exhibitor"
respawn
respawn limit 15 5
start on runlevel [2345]
stop on runlevel [06]
script
cd {{ exhibitor_install_dir}}
exec java -jar {{ exhibitor_install_dir }}/exhibitor-standalone-{{exhibitor_version}}.jar --port 8181 --defaultconfig /opt/exhibitor/exhibitor.properties --configtype s3 --s3config {{ zk_s3_bucket_name }}:{{ ansible_ec2_placement_region }} --s3backup true --hostname {{ ec2_private_ip_address }} > /var/log/exhibitor.log 2>&1
end script
@rstevens011
Copy link

rstevens011 commented Apr 6, 2017

@stack72:
the ansible playbook on your blog references a exhibitor.properties.j2 template. Its referenced in the upstart job above. However, I can seem to find that file in your gists. do you have it?

- name: Exhibitor Properties Config
  template: src=exhibitor.properties.j2
            dest={{ exhibitor_install_dir }}/exhibitor.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment