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

Maintenance Mode #59

Open
cholcombe973 opened this issue Feb 12, 2019 · 2 comments
Open

Maintenance Mode #59

cholcombe973 opened this issue Feb 12, 2019 · 2 comments

Comments

@cholcombe973
Copy link
Collaborator

Anything better we can come up with besides just disabling the cron job while maintenance is being performed on a server?

@sdandam
Copy link
Collaborator

sdandam commented Feb 27, 2019

Other alternatives are a) store a flag in the database b) A lock on the shared file (if read-only file system this will not work)
API need to be exposed to a) write the flag to database. b) remove the flag.
Bynar needs to re-evaluate if flag set is for too long.

@lcao0319
Copy link

lcao0319 commented Mar 19, 2019

We may need to following changes:

  • In protobuf, add two messages: one for putting a Bynar daemon into "maintenance mode"; another for getting it out of maintenance mode.

If we go with the DB-centric way:
Use Case: Set to Maintenance

  1. Upon receiving a setMaintenance message, the daemon will call the SQL DB to set the 'status' column to "maintenance" or some string.
  2. Whenever the daemon accepts a request, it will then check the SQL db to see if itself is in maintenance mode, if so, log it and get out without doing anything (ignore all request).

Use Case: Unset Maintenance

  1. Upon receiving a unsetMaintenance message, the daemon will call the SQL DB to set the status back to "running"(?)
  2. From then on, the daemon will perform usual duties to check disks/etc as usual.

@Comcast Comcast deleted a comment from pBeta00n Jul 29, 2019
@Comcast Comcast deleted a comment from pBeta00n Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants