Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Configurable resource request and limit on all loki components #2687

Closed
c0ffeec0der opened this issue Sep 28, 2020 · 1 comment

Comments

@c0ffeec0der
Copy link
Contributor

c0ffeec0der commented Sep 28, 2020

Hello,

I would like to request feature when deploying with tanka, resource request and limit is configurable.


Is your feature request related to a problem? Please describe.
Loki components resource request and limit is too large light to moderate usage

Describe the solution you'd like
Configurable resource request and limit

Describe alternatives you've considered
Using single instance

Additional context

@c0ffeec0der c0ffeec0der reopened this Sep 29, 2020
@c0ffeec0der c0ffeec0der changed the title Feature request: Configurable resource request and limit (cpu, memory, pvc size) on all loki components (i.e distributor, ingester) Feature request: Configurable resource request and limit on all loki components Sep 29, 2020
@c0ffeec0der
Copy link
Contributor Author

Solution from conversations

// adjust resource
gateway_container+::
$.util.resourcesRequests('10m', '10Mi') +
$.util.resourcesLimits('20m','20Mi'),

// adjust replica
gateway_deployment+:
$.apps.v1.deployment.mixin.spec.withReplicas(1),

// adjust resource for memcached
memcached_chunks+: {
memory_limit_mb: 1024,
memcached_container+::
$.util.resourcesRequests('10m', $.util.bytesToK8sQuantity(self.memory_request_bytes)) +
$.util.resourcesLimits('20m',$.util.bytesToK8sQuantity(self.memory_limits_bytes)),
},

cyriltovena pushed a commit to cyriltovena/loki that referenced this issue Jun 11, 2021
* Set cassandra default reconnect interval to 1s

Signed-off-by: Annanay <annanayagarwal@gmail.com>

* Update CHANGELOG

Signed-off-by: Annanay <annanayagarwal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant