Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): Api switch to toggle between neonDB and neoscan #121

Merged
merged 5 commits into from
Dec 30, 2017

Conversation

snowypowers
Copy link
Member

An API switch variable that allows toggling between neonDB and neoscan.

This allows us to load balance and ensure we don't keep hitting an endpoint when its down.

Methods:

api.core.setApiSwitch: set the apiSwitch to a predetermined number. 0 for 100% neoscan, 1 for 100% neonDB.

api.core.setSwitchFreeze: set the switch to freeze or not. Frozen switch will not dynamically react to failing endpoints.

@snowypowers
Copy link
Member Author

Resolves #99

@snowypowers snowypowers merged commit e62d31f into CityOfZion:dev Dec 30, 2017
@snowypowers snowypowers deleted the feat/opts branch January 7, 2018 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant