datacite / lupo

DataCite REST API
https://api.datacite.org
MIT License
12 stars 8 forks source link

Shoryuken config #1092

Closed jrhoads closed 10 months ago

jrhoads commented 10 months ago

Purpose

Current shoryuken workers sit idle waiting for work.

We were using groups and concurrency limits as a proxy for priority/weighted queue.

There are other mechanisms for that. https://github.com/ruby-shoryuken/shoryuken/wiki/Polling-strategies

closes: Add github issue that originated this PR

Approach

Changes the concurrency configuration for the shroyuken workers.

Learning

Using the shoryuken docs as a reference. Specifically, the load balancing, concurrency and polling strategies sections

Types of changes

Reviewer, please remember our guidelines:

jrhoads commented 10 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

jrhoads commented 10 months ago

I think you are correct. The groups structure overwrote (within the group) the default configurations set at the top. Will set the fallback SHORYUKEN_CONCURRENCY to 30