notes pub/sub via faye
Created by: skv-headless
Replace notes polling to pub/sub via faye. The main reason for that is high load which generated by polling. At our installation 80%-90% requests are notes requests. Also with pub/sub comments appear immediately.
1 1 web: bundle exec unicorn_rails -p ${PORT:="3000"} -E ${RAILS_ENV:="development"} -c ${UNICORN_CONFIG:="config/unicorn.rb"} 2 2 worker: bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,common,default,gitlab_shell 3 faye: bundle exec rackup private_pub.ru -s thin -E production 1 development: 2 server: "http://localhost:9292/faye" 3 secret_token: "secret" Created by: jvanbaarsen
Is there a request on the feature request forum that is similar to this? If so, can you make a comment with a link to it? Please be aware that new functionality that is not marked accepting merge/pull requests on the forum might not make it into GitLab. You might be asked to make changes and even after implementing them your feature might still be declined. If you want to reduce the chance of this happening please have a discussion in the forum first.
By Administrator on 2014-04-19T13:41:27 (imported from GitLab project)
1 1 web: bundle exec unicorn_rails -p ${PORT:="3000"} -E ${RAILS_ENV:="development"} -c ${UNICORN_CONFIG:="config/unicorn.rb"} 2 2 worker: bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,common,default,gitlab_shell 3 faye: bundle exec rackup private_pub.ru -s thin -E production Created by: skv-headless
I hope you will be exited about this PR. I'm not sure that it's a feature, rather than performance optimization, I wrote about number of requests. I know that there is some work, which I can't finish without core team help, but I will not continue to work with that until you decide are you need it.
By Administrator on 2014-04-19T14:41:23 (imported from GitLab project)
Created by: dzaporozhets
adding one more web server process is also not an option. Running sidekiq, unicorn, thin will increase amount of memory to start app and also make things more complicated. I am ok with
faye
but only mounted inside rails app so we can start only one webserver. If unicorn is not working - please suggest alternative web server.By Administrator on 2014-04-22T09:32:46 (imported from GitLab project)
Created by: dosire
I would really like that, not implement pub/sub but query the server with the updated_at time of the most recent commit. This means the server doesn't have to go over all comments to see if something changed.
By Administrator on 2014-04-22T09:39:31 (imported from GitLab project)