Skip to content

Instantly share code, notes, and snippets.

@lucj
Created May 19, 2017 08:21
Show Gist options
  • Save lucj/b1490cd84b97a88c682a283d1edb153a to your computer and use it in GitHub Desktop.
Save lucj/b1490cd84b97a88c682a283d1edb153a to your computer and use it in GitHub Desktop.
raft-logs-create-service.sh
Entry Index=17, Term=2, Type=EntryNormal:
id: 101251685852943
action: <
action: STORE_ACTION_CREATE
service: <
id: "5v6q08sfnnny4g6wb5ydrslna"
meta: <
version: <
index: 16
>
created_at: <
seconds: 1495031935
nanos: 770598203
>
updated_at: <
seconds: 1495031935
nanos: 770598203
>
>
spec: <
annotations: <
name: "vigilant_goldwasser"
>
task: <
container: <
image: "nginx:latest@sha256:12d30ce421ad530494d588f87b2328ddc3cae666e77ea1ae5ac3a6661e52cde6"
dns_config: <
>
>
resources: <
limits: <
>
reservations: <
>
>
placement: <
>
>
replicated: <
replicas: 1
>
endpoint: <
ports: <
target_port: 80
published_port: 8080
>
>
>
spec_version: <
>
>
>
Entry Index=18, Term=2, Type=EntryNormal:
id: 101251685852944
action: <
action: STORE_ACTION_UPDATE
service: <
id: "5v6q08sfnnny4g6wb5ydrslna"
meta: <
version: <
index: 17
>
created_at: <
seconds: 1495031935
nanos: 770598203
>
updated_at: <
seconds: 1495031935
nanos: 780731697
>
>
spec: <
annotations: <
name: "vigilant_goldwasser"
>
task: <
container: <
image: "nginx:latest@sha256:12d30ce421ad530494d588f87b2328ddc3cae666e77ea1ae5ac3a6661e52cde6"
dns_config: <
>
>
resources: <
limits: <
>
reservations: <
>
>
placement: <
>
>
replicated: <
replicas: 1
>
endpoint: <
ports: <
target_port: 80
published_port: 8080
>
>
>
spec_version: <
>
endpoint: <
spec: <
ports: <
target_port: 80
published_port: 8080
>
>
ports: <
target_port: 80
published_port: 8080
>
virtual_ips: <
network_id: "w53e8cpsnpy92jfyiidkn3kdj"
addr: "10.255.0.4/16"
>
>
>
>
Entry Index=19, Term=2, Type=EntryNormal:
id: 101251685852945
action: <
action: STORE_ACTION_CREATE
task: <
id: "t2agy7majkjjuju5e28px7y95"
meta: <
version: <
index: 18
>
created_at: <
seconds: 1495031935
nanos: 790188360
>
updated_at: <
seconds: 1495031935
nanos: 790188360
>
>
spec: <
container: <
image: "nginx:latest@sha256:12d30ce421ad530494d588f87b2328ddc3cae666e77ea1ae5ac3a6661e52cde6"
dns_config: <
>
>
resources: <
limits: <
>
reservations: <
>
>
placement: <
>
>
spec_version: <
>
service_id: "5v6q08sfnnny4g6wb5ydrslna"
slot: 1
annotations: <
>
service_annotations: <
name: "vigilant_goldwasser"
>
status: <
timestamp: <
seconds: 1495031935
nanos: 790120568
>
message: "created"
>
desired_state: RUNNING
endpoint: <
spec: <
ports: <
target_port: 80
published_port: 8080
>
>
>
>
>
Entry Index=20, Term=2, Type=EntryNormal:
id: 101251685852946
action: <
action: STORE_ACTION_UPDATE
task: <
id: "t2agy7majkjjuju5e28px7y95"
meta: <
version: <
index: 19
>
created_at: <
seconds: 1495031935
nanos: 790188360
>
updated_at: <
seconds: 1495031935
nanos: 811262419
>
>
spec: <
container: <
image: "nginx:latest@sha256:12d30ce421ad530494d588f87b2328ddc3cae666e77ea1ae5ac3a6661e52cde6"
dns_config: <
>
>
resources: <
limits: <
>
reservations: <
>
>
placement: <
>
>
spec_version: <
>
service_id: "5v6q08sfnnny4g6wb5ydrslna"
slot: 1
annotations: <
>
service_annotations: <
name: "vigilant_goldwasser"
>
status: <
timestamp: <
seconds: 1495031935
nanos: 811193398
>
state: PENDING
message: "pending task scheduling"
>
desired_state: RUNNING
networks: <
network: <
id: "w53e8cpsnpy92jfyiidkn3kdj"
meta: <
version: <
index: 6
>
created_at: <
seconds: 1495026025
nanos: 666404685
>
updated_at: <
seconds: 1495026025
nanos: 678373777
>
>
spec: <
annotations: <
name: "ingress"
>
driver_config: <
>
ipam: <
driver: <
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
ingress: true
>
driver_state: <
name: "overlay"
options: <
key: "com.docker.network.driver.overlay.vxlanid_list"
value: "4096"
>
>
ipam: <
driver: <
name: "default"
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
>
addresses: "10.255.0.5/16"
>
endpoint: <
spec: <
ports: <
target_port: 80
published_port: 8080
>
>
ports: <
target_port: 80
published_port: 8080
>
virtual_ips: <
network_id: "w53e8cpsnpy92jfyiidkn3kdj"
addr: "10.255.0.4/16"
>
>
>
>
Entry Index=21, Term=2, Type=EntryNormal:
id: 101251685852947
action: <
action: STORE_ACTION_UPDATE
task: <
id: "t2agy7majkjjuju5e28px7y95"
meta: <
version: <
index: 20
>
created_at: <
seconds: 1495031935
nanos: 790188360
>
updated_at: <
seconds: 1495031935
nanos: 880476936
>
>
spec: <
container: <
image: "nginx:latest@sha256:12d30ce421ad530494d588f87b2328ddc3cae666e77ea1ae5ac3a6661e52cde6"
dns_config: <
>
>
resources: <
limits: <
>
reservations: <
>
>
placement: <
>
>
spec_version: <
>
service_id: "5v6q08sfnnny4g6wb5ydrslna"
slot: 1
node_id: "lirh0kaycnqx95466z3puso89"
annotations: <
>
service_annotations: <
name: "vigilant_goldwasser"
>
status: <
timestamp: <
seconds: 1495031935
nanos: 880312355
>
state: ASSIGNED
message: "scheduler assigned task to node"
>
desired_state: RUNNING
networks: <
network: <
id: "w53e8cpsnpy92jfyiidkn3kdj"
meta: <
version: <
index: 6
>
created_at: <
seconds: 1495026025
nanos: 666404685
>
updated_at: <
seconds: 1495026025
nanos: 678373777
>
>
spec: <
annotations: <
name: "ingress"
>
driver_config: <
>
ipam: <
driver: <
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
ingress: true
>
driver_state: <
name: "overlay"
options: <
key: "com.docker.network.driver.overlay.vxlanid_list"
value: "4096"
>
>
ipam: <
driver: <
name: "default"
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
>
addresses: "10.255.0.5/16"
>
endpoint: <
spec: <
ports: <
target_port: 80
published_port: 8080
>
>
ports: <
target_port: 80
published_port: 8080
>
virtual_ips: <
network_id: "w53e8cpsnpy92jfyiidkn3kdj"
addr: "10.255.0.4/16"
>
>
>
>
Entry Index=22, Term=2, Type=EntryNormal:
id: 101251685852948
action: <
action: STORE_ACTION_UPDATE
task: <
id: "t2agy7majkjjuju5e28px7y95"
meta: <
version: <
index: 21
>
created_at: <
seconds: 1495031935
nanos: 790188360
>
updated_at: <
seconds: 1495031936
nanos: 56993679
>
>
spec: <
container: <
image: "nginx:latest@sha256:12d30ce421ad530494d588f87b2328ddc3cae666e77ea1ae5ac3a6661e52cde6"
dns_config: <
>
>
resources: <
limits: <
>
reservations: <
>
>
placement: <
>
>
spec_version: <
>
service_id: "5v6q08sfnnny4g6wb5ydrslna"
slot: 1
node_id: "lirh0kaycnqx95466z3puso89"
annotations: <
>
service_annotations: <
name: "vigilant_goldwasser"
>
status: <
timestamp: <
seconds: 1495031935
nanos: 991975232
>
state: PREPARING
message: "preparing"
>
desired_state: RUNNING
networks: <
network: <
id: "w53e8cpsnpy92jfyiidkn3kdj"
meta: <
version: <
index: 6
>
created_at: <
seconds: 1495026025
nanos: 666404685
>
updated_at: <
seconds: 1495026025
nanos: 678373777
>
>
spec: <
annotations: <
name: "ingress"
>
driver_config: <
>
ipam: <
driver: <
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
ingress: true
>
driver_state: <
name: "overlay"
options: <
key: "com.docker.network.driver.overlay.vxlanid_list"
value: "4096"
>
>
ipam: <
driver: <
name: "default"
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
>
addresses: "10.255.0.5/16"
>
endpoint: <
spec: <
ports: <
target_port: 80
published_port: 8080
>
>
ports: <
target_port: 80
published_port: 8080
>
virtual_ips: <
network_id: "w53e8cpsnpy92jfyiidkn3kdj"
addr: "10.255.0.4/16"
>
>
>
>
Entry Index=23, Term=2, Type=EntryNormal:
id: 101251685852949
action: <
action: STORE_ACTION_UPDATE
task: <
id: "t2agy7majkjjuju5e28px7y95"
meta: <
version: <
index: 22
>
created_at: <
seconds: 1495031935
nanos: 790188360
>
updated_at: <
seconds: 1495031942
nanos: 952787845
>
>
spec: <
container: <
image: "nginx:latest@sha256:12d30ce421ad530494d588f87b2328ddc3cae666e77ea1ae5ac3a6661e52cde6"
dns_config: <
>
>
resources: <
limits: <
>
reservations: <
>
>
placement: <
>
>
spec_version: <
>
service_id: "5v6q08sfnnny4g6wb5ydrslna"
slot: 1
node_id: "lirh0kaycnqx95466z3puso89"
annotations: <
>
service_annotations: <
name: "vigilant_goldwasser"
>
status: <
timestamp: <
seconds: 1495031942
nanos: 877866986
>
state: STARTING
message: "starting"
container: <
container_id: "d0d50994b541597c72e24ab05f8cdf1aa15381043950b67737341597890f8c2b"
>
port_status: <
>
>
desired_state: RUNNING
networks: <
network: <
id: "w53e8cpsnpy92jfyiidkn3kdj"
meta: <
version: <
index: 6
>
created_at: <
seconds: 1495026025
nanos: 666404685
>
updated_at: <
seconds: 1495026025
nanos: 678373777
>
>
spec: <
annotations: <
name: "ingress"
>
driver_config: <
>
ipam: <
driver: <
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
ingress: true
>
driver_state: <
name: "overlay"
options: <
key: "com.docker.network.driver.overlay.vxlanid_list"
value: "4096"
>
>
ipam: <
driver: <
name: "default"
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
>
addresses: "10.255.0.5/16"
>
endpoint: <
spec: <
ports: <
target_port: 80
published_port: 8080
>
>
ports: <
target_port: 80
published_port: 8080
>
virtual_ips: <
network_id: "w53e8cpsnpy92jfyiidkn3kdj"
addr: "10.255.0.4/16"
>
>
>
>
Entry Index=24, Term=2, Type=EntryNormal:
id: 101251685852950
action: <
action: STORE_ACTION_UPDATE
task: <
id: "t2agy7majkjjuju5e28px7y95"
meta: <
version: <
index: 23
>
created_at: <
seconds: 1495031935
nanos: 790188360
>
updated_at: <
seconds: 1495031943
nanos: 514123385
>
>
spec: <
container: <
image: "nginx:latest@sha256:12d30ce421ad530494d588f87b2328ddc3cae666e77ea1ae5ac3a6661e52cde6"
dns_config: <
>
>
resources: <
limits: <
>
reservations: <
>
>
placement: <
>
>
spec_version: <
>
service_id: "5v6q08sfnnny4g6wb5ydrslna"
slot: 1
node_id: "lirh0kaycnqx95466z3puso89"
annotations: <
>
service_annotations: <
name: "vigilant_goldwasser"
>
status: <
timestamp: <
seconds: 1495031943
nanos: 495542372
>
state: RUNNING
message: "started"
container: <
container_id: "d0d50994b541597c72e24ab05f8cdf1aa15381043950b67737341597890f8c2b"
pid: 15020
>
port_status: <
>
>
desired_state: RUNNING
networks: <
network: <
id: "w53e8cpsnpy92jfyiidkn3kdj"
meta: <
version: <
index: 6
>
created_at: <
seconds: 1495026025
nanos: 666404685
>
updated_at: <
seconds: 1495026025
nanos: 678373777
>
>
spec: <
annotations: <
name: "ingress"
>
driver_config: <
>
ipam: <
driver: <
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
ingress: true
>
driver_state: <
name: "overlay"
options: <
key: "com.docker.network.driver.overlay.vxlanid_list"
value: "4096"
>
>
ipam: <
driver: <
name: "default"
>
configs: <
subnet: "10.255.0.0/16"
gateway: "10.255.0.1"
>
>
>
addresses: "10.255.0.5/16"
>
endpoint: <
spec: <
ports: <
target_port: 80
published_port: 8080
>
>
ports: <
target_port: 80
published_port: 8080
>
virtual_ips: <
network_id: "w53e8cpsnpy92jfyiidkn3kdj"
addr: "10.255.0.4/16"
>
>
>
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment