readthedocs / common

Shared bits around multiple repositories
MIT License
22 stars 38 forks source link

Search: protect ourselves from executing long queries #210

Open humitos opened 7 months ago

humitos commented 7 months ago

This is similar to what we are doing in PostgreSQL to avoid running long queries and degrading the service.

Related https://github.com/readthedocs/addons/issues/84

humitos commented 7 months ago

This PR is only for development, but we should open a similar one for production. I haven't found where we configure these settings in production yet, tho.

humitos commented 7 months ago

I checked the configs in Elastic Cloud, but I wasn't able to find where to configure this there.

humitos commented 3 months ago

@stsewd do you know how to enable this setting in production?

stsewd commented 3 months ago

Looks like you can do it from here https://www.elastic.co/guide/en/cloud/current/ec-add-user-settings.html, but that document says that only some options are available. I don't see that option listed there.