Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Conversation

@zaccus
Copy link

@zaccus zaccus commented Mar 10, 2014

This patch implements a simple ping class that periodically checks if a single suro-server is up or down.

We noticed that if there is only one suro-server and it goes down, suro-client's static load balancer marks that server as "down", and does not mark it as back "up" again if the server comes back online. This necessitates a restart of suro-client, and since we've embedded suro-client in a larger application, that is something we want to avoid.

Currently, suro-server uses a DummyPing class by default, which does nothing by design. There is ping functionality built into the load balancer already, so all this SuroPing class does is take advantage of that functionality in cases where the usual round-robining wouldn't apply.

@g9yuayon
Copy link
Contributor

Thanks a lot, Zaccus. This looks good. Somehow the cloudbee build didn't start automatically for your pull request. We'll fix the build and then merge the pull request as soon as we can.

@cloudbees-pull-request-builder

suro-pull-requests #20 SUCCESS
This pull request looks good

g9yuayon added a commit that referenced this pull request Mar 13, 2014
@g9yuayon g9yuayon merged commit fb7a971 into Netflix:master Mar 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants