By Louis Lobban
Hi There,
I have attempted to setup a CoreOS Cluster using 3 DigitalOcean droplets across various Datacentres. When I input “fleetctl list-machines” into the leader container (LDN1) it gives the following response:
core@ldn1 ~ $ fleetctl list-machines
MACHINE IP METADATA
035d1637… 178.62.107.22 host=LDN1,location=lon1,public_ip=178.62.10*.**,region=lon
0c948a60… 128.199.55.158 host=AMS1,location=ams3,public_ip=128.199.5*.*,region=ams ** My issue here is that it is not displaying my New York container, using the same Discovery URL as the others, yet when I input "curl -L http://127.0.0.1:4001/v2/stats/leader it shows the NY container:
core@ldn1 ~ $ curl -L http://127.0.0.1:4001/v2/stats/leader
{“leader”:“LDN1”,“followers”:{“AMS1”:{“latency”:{“current”:8.961378,“average”:9. 948075820900373,“standardDeviation”:1.6590218277732314,“minimum”:8.478871,“maxim um”:52.14463},“counts”:{“fail”:0,“success”:6220}},“NYC1”:{“latency”:{“current”:0 ,“average”:0,“standardDeviation”:0,“minimum”:9.223372036854776e+18,“maximum”:0},
If anybody can shed some light on this it would be greatly appreciated! I’ve been here since 9 trying to configure this correctly and it’s starting to get a bit tedious.
Kind Regards, Louis
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Unfortunately, running a cross-datacenter cluster isn’t a very well supported configuration. You might have some luck by adjusting the peer-election-timeout and peer-heartbeat-interval values. From the CoreOS etcd docs:
The default settings in etcd should work well for installations on a local network where the average network latency is low. However, when using etcd across multiple data centers or over networks with high latency you may need to tweak the heartbeat interval and election timeout settings.
This guide might help you dig into some more debugging:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.