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

feat: support swap and zram configurations #168

Merged
merged 1 commit into from
Mar 11, 2025
Merged

feat: support swap and zram configurations #168

merged 1 commit into from
Mar 11, 2025

Conversation

dkeven
Copy link
Collaborator

@dkeven dkeven commented Mar 11, 2025

the following command line options are added to the olares-cli olares install command:

      --enable-pod-swap          Enable pods on Kubernetes cluster to use swap, setting --enable-zram, --zram-size or --zram-swap-priority implicitly enables this option, regardless of the command line args, note that only pods of the BestEffort QOS group can use swap due to K8s design
      --enable-zram              Set up a ZRAM device to be used for swap, setting --zram-size or --zram-swap-priority implicitly enables this option, regardless of the command line args
      --swappiness int           Configure the Linux swappiness value, if not set, the current configuration is remained
      --zram-size string         Set the size of the ZRAM device, takes a format of https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity, defaults to half of the total RAM
      --zram-swap-priority int   Set the swap priority of the ZRAM device, between -1 and 32767, defaults to 100

note that the https://github.com/systemd/zram-generator from systemd is not used because its configuration and dependencies are incompatible across different linux distros and does not support some configuration options that we need

@dkeven dkeven requested a review from eball March 11, 2025 12:01
@github-actions github-actions bot added the feat label Mar 11, 2025
@dkeven dkeven enabled auto-merge (squash) March 11, 2025 12:02
@dkeven dkeven merged commit 5edc7b2 into main Mar 11, 2025
2 checks passed
@dkeven dkeven deleted the feat/zram_swap branch March 11, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants