-
Notifications
You must be signed in to change notification settings - Fork 18
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
Small PHP script to reboot your server on a different node #23
Comments
Thanks @finalwebsites! Looks good to me! I've been actually thinking that you could dumb down upcloud-php-api to something like only curl, like in your script, would make things simpler :) But just an idea... "avoid_host" is they way to go when you want to solve issues like that! 👍 |
@Darep actually I didn't checked the current PHP API wrapper :) |
Thanks! Sounds good! 😊 Yeah, I was thinking about a light wrapper around curl() or guzzle. The wrapper would add the headers for you and you give it the path like |
And let me know how it goes with the example! Would be nice to have an example like that in this repo, so happy to help! |
Hi,
I had some issues with CPU steal recently and wrote this script to restart a server on a different host node.
https://gist.github.com/finalwebsites/162e168b3539b12005141113277b5edd
Any suggestions what I can do better?
Maybe you like to share it somewhere?
If you like I can create a complete tutorial (if the information qualifies to get a credit :))
The text was updated successfully, but these errors were encountered: