You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my environment, the number of cpus on a container is available in an environment variable, CONTAINER_CPU_SHARE.
I would like to pass this to SIDEKIQ_COUNT
problem is, it can be a "half cpu", e.g. "2.5"
Maybe sidekiq could accept this and round up, with something like .to_f.ceil?
I would vote for rounding up, to take full advantage of the half cpu. This is on the side of slightly higher memory use, but my uninformed guess is most users who are passing in a value would be savvy enough to be okay with that.
In my environment, the number of cpus on a container is available in an environment variable,
CONTAINER_CPU_SHARE
.I would like to pass this to
SIDEKIQ_COUNT
problem is, it can be a "half cpu", e.g.
"2.5"
Maybe sidekiq could accept this and round up, with something like
.to_f.ceil
?I would vote for rounding up, to take full advantage of the half cpu. This is on the side of slightly higher memory use, but my uninformed guess is most users who are passing in a value would be savvy enough to be okay with that.
The text was updated successfully, but these errors were encountered: