Skip to content
This repository has been archived by the owner on Mar 21, 2018. It is now read-only.

Increase timeout for search, partial_search. #373

Open
olebel opened this issue Jun 16, 2017 · 0 comments
Open

Increase timeout for search, partial_search. #373

olebel opened this issue Jun 16, 2017 · 0 comments

Comments

@olebel
Copy link

olebel commented Jun 16, 2017

I'm using Ridley to partial_search on several Chef servers for nodes with limited set of attributes.
Like that:

 chef_server = Ridley.new(
     server_url: cs['url'],
     client_name: cs['client_name'],
     client_key: cs['client_key'],
     ssl: { verify: cs['ssl_verify'] }
   )
   
   nodes = chef_server.partial_search(:node, search_query, attributes)

For Chef servers with ~1000 nodes onboard recently i start getting timeout errors. This happens if search time exceeds 1 minute:

==> master: [2017-06-16T13:45:30+00:00] INFO: Searching on external chef-server url: https://chef-server.example.com:443
==> master: E, [2017-06-16T13:46:30.874093 #17757] ERROR -- : Actor crashed!
==> master: Ridley::Errors::TimeoutError: execution expired

It looks like i hit some threshold as result of combination of amount of nodes/attributes set/Chef server performance.

Any way to increase default 60s timeout?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant