This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import fcntl | |
import argparse | |
import logging | |
import psutil | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import time | |
import sys | |
import os.path | |
import fcntl | |
import argparse | |
import logging | |
# Set logging options | |
logging.basicConfig(level=logging.INFO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS: CentOS Linux release 7.1.1503 (Core) | |
docker info: | |
Containers: 0 | |
Images: 5 | |
Storage Driver: devicemapper | |
Pool Name: docker-253:5-136018-pool | |
Pool Blocksize: 65.54 kB | |
Backing Filesystem: extfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ip-10-180-34-196 new_certs]# docker version | |
Client: | |
Version: 1.9.1 | |
API version: 1.21 | |
Go version: go1.4.2 | |
Git commit: a34a1d5 | |
Built: Fri Nov 20 13:25:01 UTC 2015 | |
OS/Arch: linux/amd64 | |
Server: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -t "bmcgeneva:netty-1.0.0-SNAPSHOT-151204215529" -f Dockerfile . | |
Sending build context to Docker daemon 416.5 MB | |
Sending build context to Docker daemon | |
Step 0 : FROM bmcgeneva:jdk18-jdk-1.0.0-SNAPSHOT-latest | |
---> 2cf8d95119ff | |
Step 1 : RUN mkdir -p /logs/netty; mkdir -p /apps/netty; mkdir -p /apps/netty/ingestor; | |
---> Using cache | |
---> e8e23ec0f5d9 | |
Step 2 : COPY pip-pkgs.sh netty-configure.py netty-1.0.0-SNAPSHOT-bundle.tar.gz main.properties /apps/netty/ | |
---> b7614d2e8f3a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Zookeeper | |
job "zookeeper" { | |
# Specify Region | |
region = "uswest-fremont" | |
# Specify Datacenter | |
datacenters = [ "fremont-dc1"] | |
# Specify job type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The number of milliseconds of each tick | |
tickTime=2000 | |
# The number of ticks that the initial | |
# synchronization phase can take | |
initLimit=10 | |
# The number of ticks that can pass between | |
# sending a request and getting an acknowledgement | |
syncLimit=5 | |
# the directory where the snapshot is stored. | |
# do not use /tmp for storage, /tmp here is just |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{range $i, $services := service "zookeeper"}} | |
{{ $i | add 1 }} | |
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Zookeeper | |
job "zookeeper" { | |
# Specify Region | |
region = "uswest-fremont" | |
# Specify Datacenter | |
datacenters = [ "fremont-dc1"] | |
# Specify job type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- $myid_counter := key "zk/zkcounter" | parseInt -}} | |
{{- range $i, $services := service "zookeeper" -}} | |
{{- with node -}} | |
{{- if eq $services.Node .Node.Node -}} | |
{{- $myid_counter | add $i -}} | |
{{- end -}} | |
{{- end -}} | |
{{ end }} |
OlderNewer