我的 api 返回错误,但没有显示完整的堆栈跟踪:
2018-04-20T12:32:00.673008+00:00 heroku[router]: at=info method=PUT [...] status=500 bytes=243 protocol=https
Run Code Online (Sandbox Code Playgroud)
我不知道为什么我得到这个 500,因为它适用于开发。我猜是关于 Heroku 上缺少的一些附加组件或类似的东西,但我不知道我是否没有得到 500 堆栈跟踪。
我已经有config.log_level = :debug我的production.rb。是否可以在 Heroku 上看到完整的堆栈跟踪?
我的项目后端使用 Ruby on Rails 5。
有可能的?据亚马逊称,Amazon EC2 Auto Scaling使用水平缩放:
You can also use Amazon EC2 Auto Scaling for dynamic scaling of EC2 instances in order to automatically increase the number of Amazon EC2 instances during demand spikes to maintain performance and decrease capacity during lulls to reduce costs.
我没有通过更改每个实例规范而不是添加或删除它们来引用垂直缩放。