Homec4science

[elasticsearch] Add timeout to API calls

Authored by macvicar <macvicar@fb.com> on Jun 8 2012, 09:06.

Description

[elasticsearch] Add timeout to API calls

Summary:
Default of 300 seconds is more than likely too much in most cases.
Provide the option to override.

Test Plan:
Blocked ElasticSearch with iptables
Set timeout to 5 seconds and make sure we error early

Reviewers: epriestley, vrana

Reviewed By: vrana

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D2678

Details

Committed
macvicar <macvicar@fb.com>Jun 8 2012, 21:16
Pushed
aubortJan 31 2017, 17:16
Parents
rPH5c5351b5e3f6: Minor, fix Dxxx in IRCBot.
Branches
Unknown
Tags
Unknown

Event Timeline

macvicar <macvicar@fb.com> committed rPH1d94d49c171c: [elasticsearch] Add timeout to API calls (authored by macvicar <macvicar@fb.com>).Jun 8 2012, 21:16