Skip to content

drewcoo/consul_play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consul_play

Just playing with Consul.

Install Dependencies

`choco install -y consul`
`choco install -y curl`
`choco install -y jq`
`choco install -y sed`

Play

To start the server:

`bin\start.cmd`

And from there you can set two to follow one:

1. Go to http://localhost:8500/ui/local_machine/kv/notepad/two/
2. Create a key called `follow`
3. Set its value to `one`

Tell one to start:

1. Go to http://localhost:8500/ui/local_machine/kv/notepad/one/state
2. Create a key called `desired`
3. Set the value to `running`

Then notepad instance one will figure out to start.

Once instance one is up, two will discover that it's changed and two will also start.

Set one to stopped to have it eventually stop and two eventually follow.

More

It works well with the TICK monitoring suite and the ELK log aggregator, both OSS easy and free at the low end and as complex and possibly expensive as you like on the high end. As an example, there's a plugin for Telegraf, the T in TICK. And there are plugins for dashboards like Graphana.

About

playing with Consul

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published