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
[RFE] Advance options in RHDS Disk Monitoring Framework #4013
Comments
Comment from spichugi (@droideck) at 2020-03-17 13:25:59 |
Comment from spichugi (@droideck) at 2020-03-17 13:26:00 Metadata Update from @droideck:
|
Comment from spichugi (@droideck) at 2020-03-17 13:26:22 Metadata Update from @droideck:
|
Comment from spichugi (@droideck) at 2020-03-17 13:26:29 Metadata Update from @droideck:
|
Comment from mreynolds (@mreynolds389) at 2020-03-19 16:46:56 Metadata Update from @mreynolds389:
|
Comment from spichugi (@droideck) at 2020-06-24 16:22:54 Metadata Update from @droideck:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/50960
Issue Description
Assuming the threshold is set for 50 MB, as soon the disk space is less than 50 MB, 389 DS will stop logging & when disk space is half the threshold i.e. 25MB ds will shut down, In this case, the application will come into the picture and in order to self heal, Try to start the ds, Since disk space is still an issue, 389 DS will again shut down the service & smanager will try to start it again. Well in this cycle, There is often chances data will get corrupt.
This RFE is opened to make rhds disk monitororing more robust.
Add two attributes to cn=config:
nsslapd-disk-monitoring-readonly-on-threshold - it accepts 'on/off' values and changes the original behavior so when we reach the threshold, we set the read-only mode (and then we do other actions - like disable non-critical logging, etc.). When we reach half of the threshold, we start the graceful shutdown as it was before. We don't start up if the disk space is still below half of the threshold.
nsslapd-disk-monitoring-shutdown-script - this attribute accepts a path to a script (any executable) which will be run at the moment of a graceful shutdown at half of the threshold (it will be run as the user who runs ns-slapd process). It will allow initiating the process which can take a backup, send mail to an admin about disk space alarm or any other custom command.
The text was updated successfully, but these errors were encountered: