Tsu-ba-me
d2f34ea5a9
docs(cgi-bin): revise set_power description
4 years ago
Tsu-ba-me
ffe2a7f59e
feat(cgi-bin): add boilerplate for get_networks
4 years ago
Tsu-ba-me
7058a967ed
fix(cgi-bin): add temporary constant reserved in get_memory response
4 years ago
Tsu-ba-me
10269bf74b
fix(cgi-bin): remove server_host_index from get_servers response
4 years ago
Tsu-ba-me
adbf7b790e
fix(cgi-bin): rename node->host in response of get_anvils
4 years ago
Tsu-ba-me
8d1d49e807
fix(cgi-bin): add missing response info to get_anvils
4 years ago
Tsu-ba-me
c749441e3b
fix(cgi-bin): transform maintenance_mode to JSON booleans in get_status
4 years ago
Tsu-ba-me
e1c3064303
fix(cgi-bin): transform all memory sizes to JSON numbers
4 years ago
Tsu-ba-me
552ed66829
fix(cgi-bin): transform CPU cores and threads to JSON numbers
4 years ago
Tsu-ba-me
78f50e424c
fix(cgi-bin): transform FS total size to int in get_shared_storage
4 years ago
Tsu-ba-me
8bcff7a038
fix(cgi-bin): transform boolean int to JSON boolean in get_shared_storage
4 years ago
Tsu-ba-me
5b7367a579
fix(cgi-bin): add file_systems response property to get_shared_storage
4 years ago
Digimer
f6aad628b3
Merge pull request #100 from Tsu-ba-me/issues/2-set-membership
...
Web UI: make `set_membership` endpoint functional
4 years ago
Tsu-ba-me
028d547d7c
fix(cgi-bin): reset log level in set_membership
4 years ago
Tsu-ba-me
7ffb84f9a3
fix(cgi-bin): set join and leave cluster jobs to run on target host
4 years ago
Tsu-ba-me
52a524564f
fix(cgi-bin): try to use switches when failed to parse request body in get_membership
4 years ago
Tsu-ba-me
7bf604b3e2
fix(cgi-bin): add switch for is_member in set_membership
4 years ago
Tsu-ba-me
50c5098230
fix(cgi-bin): release job dispatching logic in set_membership
4 years ago
Tsu-ba-me
1cc0a9b087
fix(cgi-bin): add switch support to set_membership
4 years ago
Tsu-ba-me
419ec52d2b
fix(cgi-bin): add job title and description to set_membership
4 years ago
Tsu-ba-me
d6c1013976
fix(cgi-bin): add join/leave cluster logic to set_membership
4 years ago
Tsu-ba-me
314e8db757
fix(cgi-bin): get host's cluster membership status in set_membership
4 years ago
Tsu-ba-me
da6e3500a3
fix(cgi-bin): add request body parsing to set_membership
4 years ago
Tsu-ba-me
c7fe5aa1e0
fix(cgi-bin): add boilerplate to set_membership
4 years ago
Digimer
5639eda8c3
Merge pull request #99 from Tsu-ba-me/issues/1-set-power
...
Web UI: make `set_power` endpoint functional
4 years ago
Tsu-ba-me
593921fa04
fix(cgi-bin): reset log level in set_power
4 years ago
Tsu-ba-me
5c7d9d9e82
fix(cgi-bin): stop servers when shutting down the whole anvil
4 years ago
Tsu-ba-me
9a483b5d55
fix(cgi-bin): set shutdown job to run on target node
4 years ago
Tsu-ba-me
0020103b77
fix(cgi-bin): try to use switches when failed to parse request body
4 years ago
Tsu-ba-me
ba93ae38d8
fix(cgi-bin): add switch for is_on in set_power
4 years ago
Tsu-ba-me
7ef54f08a4
style(cgi-bin): remove excess indent in set_power
4 years ago
Tsu-ba-me
d1149d5978
fix(cgi-bin): release job dispatching logic in set_power
4 years ago
Tsu-ba-me
5a3daa3528
fix(cgi-bin): add switch support to set_power
4 years ago
Tsu-ba-me
e80ebdb8b4
fix(cgi-bin): correct host_uuid existence check in set_power
4 years ago
Tsu-ba-me
f966ed12fb
style(cgi-bin): format set_power to keep consistency
4 years ago
Tsu-ba-me
fae1c72986
docs(cgi-bin): rename hash->response_body in set_power
4 years ago
Tsu-ba-me
540129bb8f
fix(cgi-bin): remove outdated logic
4 years ago
Tsu-ba-me
7c1e6e7c87
fix(cgi-bin): add proper error messages when given invalid UUID(s)
4 years ago
Tsu-ba-me
1ec32bfbaf
fix(cgi-bin): filled in logic to power on/off target host(s)
4 years ago
Tsu-ba-me
12113e1dda
fix(cgi-bin): parse set_power request body to get parameters
4 years ago
Tsu-ba-me
869a5ec807
fix(share): add error template 0304 for request body parse failure
4 years ago
Tsu-ba-me
3ae54037ea
fix(cgi-bin): improve verbosity in set_power
4 years ago
Tsu-ba-me
a8571863be
fix(cgi-bin): add subs to handle set anvil/host power
4 years ago
digimer-bot
5903cb2921
Merge pull request #105 from ClusterLabs/anvil-tools-dev
...
* Updated System->configure_ipmi to pull the machine from the anvils …
4 years ago
Digimer
78f3fb7b10
* Updated System->configure_ipmi to pull the machine from the anvils table instead of looking for the original job, which isn't useful now that we purge old jobs.
...
* Shortened up the log messages in scan-drbd
Signed-off-by: Digimer <digimer@alteeve.ca>
4 years ago
digimer-bot
628c31a278
Merge pull request #104 from ClusterLabs/anvil-tools-dev
...
* Biggest change in this commit; scan-apc-pdu and scan-apc-ups now on…
4 years ago
Digimer
f3a6d2eec3
Merge branch 'master' into anvil-tools-dev
4 years ago
Digimer
4dcd505753
* Biggest change in this commit; scan-apc-pdu and scan-apc-ups now only run on Striker dashboards! This was because we found that if two machines ran their agents at the same time, the reponce time from SNMP read requests grew a lot. This meant it was likely a third, fourth and so on machne would also then have their scan agent runs while the existing runs were still trying to process, causing the SNMP reads to get slower still until timeouts popped.
...
* Bumped scancore's scan delay from 30 seconds to 60.
* Shorted the age-out time to 24 hours and again boosted the archive thresholds. As we get a feel for the amount of data collected on multi-Anvil! systems over time, we may continue to tune this.l
* Moved Database->archive_database() to be called daily by anvil-daemon, instead of during '->connect' calls.
* Added locking to Database->_age_out_data to avoid resyncs mid-purge. Also moved the power, temperature and ip_address columns into the same 'to_clean' hash as it was duplicate logic.
Signed-off-by: Digimer <digimer@alteeve.ca>
4 years ago
digimer-bot
6de1824fe7
Merge pull request #102 from ClusterLabs/anvil-tools-dev
...
The theme of this commit is database cleanup and fixes.
4 years ago
Digimer
8807915bb7
The theme of this commit is database cleanup and fixes.
...
* Updated Database->_age_out_data() to check for certain scan agent tables and, for those found, purge out old records. This should go a long way to keeping the database data responsive.
* Fixed a bug in Jobs->update_progress() where the 'job_picked_up_by' column was being set to '0' instead of '$$' when clearing the job.
* Fixed a bug in System->update_hosts() where '127.0.0.1' would be used in hosts for the actual host name.
* Updated the default trigger, count and division values in anvil.conf to 100,000, 50,000 and 75,000 respectively. In combination with the aging of data, this should go a long way to minimizing database sizes and overheads.
* Updated anvil-daemon to call $anvil->Database->_age_out_data(); in it's daily tasks.
* Updated various striker-X tools to specifically request a DB resync on Database->connect calls.
Signed-off-by: Digimer <digimer@alteeve.ca>
4 years ago