Git Product home page Git Product logo

Comments (3)

JustinLove avatar JustinLove commented on August 21, 2024

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.

JustinLove avatar JustinLove commented on August 21, 2024

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.

JustinLove avatar JustinLove commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.