henszey / etcd-browser

A quick and easy way to view/edit basic keys in etcd.
http://henszey.github.io/etcd-browser/
MIT License
672 stars 232 forks source link

Non-leader endpoint #7

Open jqcorreia opened 9 years ago

jqcorreia commented 9 years ago

Hey,

First of all I find this etcd-browser extremely useful and started to be a fundamental part of my distributed solution. Nice one! One of the issues that I have tough is that even when CORS is active on all my etcd nodes I can only use the leader node to add/edit values. Is this the expected behaviour? Thanks in advance for any reply

dblessing commented 9 years ago

Yes, this is the behavior of etcd itself. All changes must go through the leader node. We have load balanced etcd and our check script only actibates the leader node through the leader vip. I hope this helps.

n0n0x commented 9 years ago

I am addressing this issue on PR #9. Though it is a hack because I am new at node programming, I think it does the job pretty well. I think the best solution would be to rewrite the request section by using request.