-
Notifications
You must be signed in to change notification settings - Fork 378
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
Possibility to autoremove hanging servers from servers list #674
Comments
Speaking of mysql/postgres/custom engines, you can try those |
any way to do this? some surgery in db files etc? |
I have just pushed out Cronicle v0.9.39 which adds You can remove servers with Both of these APIs are undocumented, and require admin-level API tokens to use. I'm assuming since you are already registering servers on container launch, you figured out how to get admin-level API keys 😊 |
Cool, will give a try.
To delete 2k pods manually nop tnx
…On Thu, 16 Nov 2023 at 18:00, Joseph Huckaby ***@***.***> wrote:
I have just pushed out Cronicle v0.9.39
<https://github.com/jhuckaby/Cronicle/releases/tag/v0.9.39> which adds
/api/app/get_servers. This will return all the current servers in the
cluster.
You can remove servers with /api/app/remove_server. Pass in the hostname
of the server you want to remove as param name hostname.
Both of these APIs are undocumented, and require admin-level API tokens to
use.
I'm assuming since you are already registering servers on container
launch, you figured out how to get admin-level API keys 😊
—
Reply to this email directly, view it on GitHub
<#674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH45ISA7HBV4CKADNZV7GTYEZBCPAVCNFSM6AAAAAA7AITK6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUHA2TMMRZGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@jhuckaby does cornicle v1 support admin-level API keys? |
@mikeTWC1984 Not officially, but I've had a few people ask so I described how to do it in a discussion thread. You have to hack the DB a wee bit, but it works: The process is described here: #479 At some point I'll just go ahead and add it to the UI, but I haven't had the time to really test it thoroughly. (Orchestra supports this fully of course, and it's in the UI.) |
@jhuckaby any way to get the status for the server as well in the call? I mean if its alive or not? |
@marcispauls If a server is offline it will have a Orchestra doesn't have a link yet, sorry. It's still unreleased. But coming soon! |
In /api/app/get_servers i cant see that info sadly :/ |
It works fine for me.
{
"code": 0,
"servers": {
"mini.local": {
"hostname": "mini.local",
"ip": "192.168.3.46",
"master": 1,
"uptime": 95,
"data": {
"cpu": 5.7,
"mem": 57663488
},
"disabled": 0
},
"joework.local": {
"hostname": "joework.local",
"ip": "192.168.3.40",
"master": 0,
"uptime": 0,
"data": {},
"disabled": true
}
}
} Notice the Please note that it takes up to a minute to "realize" that a server has gone offline. |
ehh, full moon :D works as you described. there was issue between chair and monitor |
At the end i ended by creating job in cronicle itself:
Big tnx @jhuckaby and waiting for Orchestra. Let me know if support is needed :) |
Summary
First thank you for great tool - we cant wait for v2 and api support + some postgresql or mysql support on aws or any non s3 backend.
We are currently registering servers on container launch using nondocumented api.
All cool, but as its containerized happens that containers cycle etc and there would be awesome feature if we could:
or
The text was updated successfully, but these errors were encountered: