Closed
Bug 1021726
Opened 12 years ago
Closed 12 years ago
heartbeat timeout
Categories
(Hello (Loop) :: Server, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: tarek, Assigned: alexis+bugs)
Details
(Whiteboard: [qa+])
Attachments
(1 file)
We should timeout after 5 seconds if the tok backend does not answer
Comment 1•12 years ago
|
||
http://www.sitepoint.com/making-http-requests-in-node-js/ can help I will have a look.
Updated•12 years ago
|
Assignee: nobody → rhubscher
Updated•12 years ago
|
Whiteboard: [qa+]
Comment 2•12 years ago
|
||
I am getting a response from Stage and Prod in less that 5 seconds (of course I have a fast connection).
What are the symptoms?
Comment 3•12 years ago
|
||
Well, the __heartbeat__ works great when storage and partner answer.
When they don't the page is taking too long to answer and we don't get any answer with the 30s nginx timeout.
What we want to do is to set the redis.client timeout and partner.request timeout to a lower value (2s) so that in the worst case the page is taking 5s to answer
| Reporter | ||
Updated•12 years ago
|
Severity: normal → critical
Priority: -- → P1
| Assignee | ||
Comment 4•12 years ago
|
||
This is actually a configuration option we should set on the server. Letting the default behavior by default is probably what we want, but for prod we want something different here.
Benson, I'm adding you to this one, you would need to add the a "connect_timeout" setting of the storage "options" to something that's shorter than the expiration of nginx.
Assignee: rhubscher → bwong
Comment 5•12 years ago
|
||
:alexis if it is a new configuration option please update the config.js schema. Once that is done I'll do the puppet work necessary to set this timeout.
Assignee: bwong → alexis+bugs
| Assignee | ||
Comment 6•12 years ago
|
||
that's a configuration option, but not required in all the cases, only when the backend is redis, it should go in the "settings" blob.
| Assignee | ||
Comment 7•12 years ago
|
||
Attachment #8439577 -
Flags: review?(tarek)
| Assignee | ||
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Reporter | ||
Updated•12 years ago
|
Attachment #8439577 -
Flags: review?(tarek) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•