Comments (3)
Thanks for the tip on Discourse.
There is more than one kind of middleware. The rake task will list Rack Middleware. Autoscaler installs Sidekiq Middleware To make it worse, Sidekiq has Client and Server middleware (often you only need one or the other, sometimes you need both).
The asymmetry between client and server may the be reason that you scale-up (client middleware) but not scale down (server middleware)
from autoscaler.
I added the recommended configuration (editing redis url) to https://github.com/JustinLove/autoscaler_sample/tree/discourse and it seems to be working. http://autoscaler-sample.herokuapp.com/
At the moment I'm out of time to experiment with Discourse proper.
from autoscaler.
Works for me
2013-06-04T18:11:30.853009+00:00 app[sidekiq.1]: 2013-06-04T18:11:30Z 2 TID-ow1gs4av4 Jobs::VersionCheck JID-8885329966ccea22a2c28c3d INFO: start
2013-06-04T18:11:31.106759+00:00 app[sidekiq.1]: 2013-06-04T18:11:31Z 2 TID-ow1gs4av4 Jobs::VersionCheck JID-8885329966ccea22a2c28c3d INFO: done: 0.253 sec
2013-06-04T18:12:31.197073+00:00 app[sidekiq.1]: "Scaling sidekiq to 0"
2013-06-04T18:12:31.285241+00:00 heroku[api]: Scale to sidekiq=0, web=1 by ...
I pushed my fork if you want to compare https://github.com/JustinLove/discourse/tree/autoscaler-test
Config variables set:
DATABASE_URL
HEROKU_API_KEY
HEROKU_APP
HEROKU_POSTGRESQL_BLACK_URL
OPENREDIS_URL
REDIS_PROVIDER_URL
SECRET_TOKEN
from autoscaler.
Related Issues (20)
- Handle heroku api downtimes HOT 1
- Project requires more active maintainer HOT 3
- 403 Forbidden when scaling worker HOT 1
- support for Sidekiq 3.0.0 HOT 4
- undefined method `async' for nil:NilClass HOT 2
- Autoscaling multiple workers HOT 1
- support for Sidekiq 3.1 and 3.2 HOT 2
- Upgrade to platform-api HOT 2
- time to release a new version? HOT 15
- Linear scaling strategy with long running jobs HOT 3
- Handling multiple queues with a single worker dyno HOT 4
- How to use LinearScalingStrategy? HOT 1
- Project maintainer should also be a user HOT 3
- Error when scaling down - Unable to create thread HOT 10
- don't want to use set_initial_workers HOT 5
- Sidekiq 5 support? HOT 2
- Heroku platform API error HOT 3
- Rename ENV vars HOT 4
- Autoscaler is passaing Incorrect Authentication "type" param to platform-api HOT 4
- ThreadError: can't alloc thread HOT 6
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 autoscaler.