为什么我们要点击Heroku的H12"请求超时"如果我们将Rack :: Timeout设置为10s

时间:2017-09-26 16:33:36

标签: ruby-on-rails ruby heroku ruby-on-rails-5

我已经在Heroku中获得了大约503个,即使在df1$b[!(df1$b %in% df2$b)]=df2$b[!(df1$b %in% df2$b)] 我有这个:

config/initializers/timeout.rb

在Heroku本身可以超时之前不应该触发它吗?

这是Rack::Timeout.service_timeout = 10 # seconds Rack::Timeout.wait_timeout = 5

config/puma.rb

workers Integer(ENV["WEB_CONCURRENCY"] || 2) threads_count = Integer(ENV["MAX_THREADS"] || 5) threads threads_count, threads_count worker_timeout 15 worker_shutdown_timeout 8 preload_app! rackup DefaultRackup port ENV["PORT"] || 3000 environment ENV["RACK_ENV"] || "development" on_worker_boot do ActiveRecord::Base.establish_connection end

Gemfile

顺便说一下,这是日志中的一个例子

gem "puma", "~> 3.10"
gem "rack-timeout", "~> 0.4"

0 个答案:

没有答案