Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Add divisor to resourceFieldRef’s that expect a value in MB instead of bytes #4016

Merged
merged 2 commits into from
Nov 9, 2021

Conversation

caugustus-sourcegraph
Copy link
Contributor

@caugustus-sourcegraph caugustus-sourcegraph commented Oct 19, 2021

Fixes https://github.com/sourcegraph/sourcegraph/issues/26283.

Limits and requests for ephemeral-storage are measured in bytes, and the SEARCHER_CACHE_SIZE_MB / SYMBOLS_CACHE_SIZE_MB var's expect a unit of MB.

Caveats:

  • I'm not sure how to test this change - ideally I'd fill up the cache and confirm it crashes the pod before this change, and works after. How can I make that happen?
    Tested by filling up the disk using dd
  • This will reduce the allowed cache size for any customers adopting this change. I think this will have no impact because the cache was already practically limited by the ephemeral disk size, but I'd appreciate confirmation from someone.
    Not a concern, because caches are per-pod and get recreated on every deployment

Checklist

@caugustus-sourcegraph caugustus-sourcegraph requested a review from a team October 20, 2021 14:17
@davejrt
Copy link
Contributor

davejrt commented Oct 21, 2021

@caugustus-sourcegraph let's pair tomorrow and I'll show you how i was testing this the other day

@caugustus-sourcegraph caugustus-sourcegraph enabled auto-merge (squash) November 9, 2021 21:31
@caugustus-sourcegraph caugustus-sourcegraph merged commit b404656 into master Nov 9, 2021
@caugustus-sourcegraph caugustus-sourcegraph deleted the caug/add-divisor branch November 9, 2021 21:47
alejandrom-eb referenced this pull request in eventbrite/deploy-sourcegraph Dec 10, 2021
v3.34.1

* tag 'v3.34.1':
  release: [email protected] (#4028)
  release: [email protected] (#4024)
  OSS license and disclaimer (#3847)
  Add divisor to resourceFieldRef’s that expect a value in MB instead of bytes (#4016)
  fixes fsgroup id (#4021)
  tools: in-place image updates (#4019)
  Drop liveness probes (#2970)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deployment: incorrect SYMBOLS_CACHE_SIZE_MB setting when using resourceFieldRef
2 participants