Attempting to get post requests working.

This commit is contained in:
Travis
2013-04-02 15:45:04 -07:00
parent 01939a0744
commit 3cdee540bf
5 changed files with 29 additions and 20 deletions

View File

@@ -10,19 +10,19 @@ The idea here is that IronWorker backend can tell the router that it started a p
This is just a simple prototype. To get to production would need:
- Routing table in central storage (mongo or IronCache) so all routers can write to it and read to get updates.
- Update routing table from central store every X minutes.
- Remove failed routes and start new workers if it failed.
- Expire routes after 55 minutes or so.
- Ability to start new workers if none are running.
- Ability to always keep a minimum number running at all times, like at least one (or not if on free account?).
- Ability to start new workers based on some auto scaling scheme.
- Ability to start new workers based on some auto scaling scheme.
- Authentication (same as always).
## Testing for reals
## Testing for reals on staging
- start router.go on remote server (there's a test project on SD already: http://www.simpledeployer.com/projects/ea129e74-52fa-11e2-a91a-12313d008ea2/servers)
- go build ./src/router; sudo ./router
- start router.go on remote server (there's a test project on SD already:
- http://www.simpledeployer.com/projects/ea129e74-52fa-11e2-a91a-12313d008ea2/servers
- go build ./src/router; sudo ./router
- iron_worker upload -e staging --project-id 51034bc3c2e603384b00a092 --host routertest.irondns.info sinatra
- visit http://routertest.iron.io (or ruby client.rb)
- BOOM!
## Deploying to production
- just deploy as normal from SD project