Skip to content

Latest commit

 

History

History
65 lines (53 loc) · 2.16 KB

demo_consul_shards.md

File metadata and controls

65 lines (53 loc) · 2.16 KB

Panoptes Shards / Cluster with Consul demonstration


Panoptes configuration: Consul Service discovery: Consul

You can see this demo through http://localhost:3000 in real time once you turned the demo up. The grafana dashboard username is panoptes and password is panoptes This demo included 8 containers as follow:

  • Two Panoptes nodes
  • Panoptes gNMI simulator
  • Consul
  • Consul initializer
  • Grafana
  • InfluxDB
  • Prometheus

The devices (5x simulated juniper devices) assigned to node-1 and node-2 automatically through auto sharding. it works based the hashing and modulo operation. you can see the configuration at http://localhost:8500 (key/value: panoptes > config)

panoptes consul demo

Checkout GitHub

git checkout github.com/yahoo/panoptes-stream
cd panoptes-stream/scripts/demo_shards

Start the containers

docker-compose -f docker-compose.consul.yml up -d

panoptes consul demo

docker-compose -f docker-compose.consul.yml ps

panoptes consul demo

http://localhost:3000 Panoptes Sharding Status

panoptes consul demo

Stop second node

docker stop panoptes-node2

The node one will take over the device[2 & 4].lax in less than a minute. panoptes consul demo panoptes consul demo

Start second node

docker start panoptes-node2

http://localhost:3000 Panoptes Sharding Status

panoptes consul demo

http://localhost:3000 Panoptes Sharding Demo panoptes consul demo

Clean up

docker-compose -f docker-compose.consul.yml down

All demonstrations Please check out the demo page to see all of the demonstrations for different scenarios.