Comments (8)
So basically:
https://developers.linode.com/api/v4#operation/bootLinodeInstance
https://developers.linode.com/api/v4#operation/shutdownLinodeInstance
https://developers.digitalocean.com/documentation/v2/#power-on-a-droplet
https://developers.digitalocean.com/documentation/v2/#shutdown-a-droplet
https://docs.aws.amazon.com/cli/latest/reference/ec2/start-instances.html
https://docs.aws.amazon.com/cli/latest/reference/ec2/stop-instances.html
from forge-sdk.
@barryvdh can you explain more?
from forge-sdk.
There is only action now: reboot
. But you can't shutdown
and boot
droplets/servers, right?
For example in AWS, you don't pay for an instance that is shut down, so could be preferred to shut something down when it's not needed, and boot it when extra capacity is preferred.
from forge-sdk.
@barryvdh thanks. So is this the workflow?
- Stop server using AWS, Linode, or DigOcean API.
- Start server using AWS, Linode, or DigOcean API.
- Reboot server using Forge API
How does Forge know the new IP address if the stopping and starting changes it?
from forge-sdk.
For load-balanced servers, you only need the internal IP, right? And workers also don't need public IPs
from forge-sdk.
Regardless, the changed IP is metadata Forge needs, right?
Did you solve this problem for yourself? If so, would you mind sharing pseudo-code to help explain what works?
from forge-sdk.
Not yet, sorry. I think for scaling workload in workers/queue, I'm going for the Serverless route (waiting for Laracon for that ;) )
For webservers I'm not sure yet. I think it it would be something like this:
- Start (pre-configured) server
- Trigger deployment to server to match current state of other servers
- Health check
- Enable load balancing to that server with Forge API
Scaling down would just be disabling load balancing to that server and stopping it.
But it would be probably not really flexible and if it's a big load then containers/kubernetes etc would be much better.
(Also, you could assign an elastic IP to that instance I think)
from forge-sdk.
Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue and we'll re-open this issue.
from forge-sdk.
Related Issues (20)
- Update FPM Pool configuration HOT 1
- Http Client error in forge, not in local HOT 1
- CreateSite api isolation=true goes on 502 error HOT 10
- Specify collation on database creation HOT 2
- Expose API endpoints for managing PHP versions HOT 3
- retry method in MakesHttpRequests is sending boolean values to TimeoutException HOT 1
- Call to a member function request() on null HOT 1
- Undefined array key "provision_command" HOT 2
- Managing Create Database User HOT 1
- Deployment output call returns the same log for every deployment on a server/site HOT 1
- Server ubuntuVersion property does not return a version below 20.04 HOT 1
- Some functions use a hard coded timeout of 30 HOT 2
- Deprecated Properties in PHP 8.2 HOT 7
- Add $phpVersion property to Laravel\Forge\Resources\Site HOT 2
- Update site tags via SDK/API HOT 1
- Routing in Forge Docs HOT 1
- Forge link broken in docs HOT 2
- Support `auto_source` in Site::updateDeploymentScript() HOT 1
- Add auto-source support for `updateSiteDeploymentScript` Method HOT 1
- Improve Exception handling for 422 / existing items HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forge-sdk.