sinopia icon indicating copy to clipboard operation
sinopia copied to clipboard

Running multiple Sinopia nodes behind a load balancer, keep local data in sync

Open ckloppers opened this issue 9 years ago • 4 comments

I have made a change to the get request method. It will sync the local data folder on each GET request. This functionality is needed to ensure that all Sinopia nodes are presenting the correct state for the data storage folder.

I have multiple Sinopia node all sharing a NFS share as it's local data storage folder.

Would be great to get this included in master branch.

ckloppers avatar Apr 29 '15 02:04 ckloppers

@ckloppers - Unrelated but how is your setup working? I am trying it out as multiple nodes behind haproxy and I am getting 'EBAD, Bad file decriptor' errors when npm publish-ing

kodypeterson avatar May 11 '15 18:05 kodypeterson

@kodypeterson - its wrong , not sure how s ur setup , im using haproxy with 3 nodes, which works fine. My only feeling is , eventhough its resides in FS ( i can able to publish / unpublish / install ) im not able to see in UI ( for some nodes only ) , as a LB will hook a connection with single node and publish the packages , it will be visible in that node UI , but not with others. But its good if someone merge this fix with master. My appreciation to @ckloppers - Cheers buds

macbash avatar Sep 10 '15 10:09 macbash

@ckloppers Seems like you should remove https://github.com/rlidwka/sinopia/pull/241/files?diff=unified#diff-65ac49d6e45d41aa25eff783fe855295L33.

victortrac avatar May 03 '16 20:05 victortrac

@victortrac @ckloppers - When can we expect next release ?

macbash avatar May 07 '16 16:05 macbash