Skip to content

Commit

Permalink
Feat(): Set UNICORN_SIDEKIQ_MAX_RSS env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alithethird committed Dec 9, 2024
1 parent 105065e commit 64ecd6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,8 @@ options:
type: string
description: "Throttle level - blocks excessive usage by ip. Accepted values: none, permissive, strict."
default: none
sidekiq_max_memory:
description: Maximum memory for sidekiq in megabytes. This configuration
will set the UNICORN_SIDEKIQ_MAX_RSS environment variable.
type: int
default: 1000
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ def _create_discourse_environment_settings(self) -> typing.Dict[str, str]:
"DISCOURSE_SMTP_PORT": str(self.config["smtp_port"]),
"DISCOURSE_SMTP_USER_NAME": self.config["smtp_username"],
"RAILS_ENV": "production",
"UNICORN_SIDEKIQ_MAX_RSS": str(self.config["sidekiq_max_memory"]),
}
pod_config.update(self._get_saml_config())

Expand Down

0 comments on commit 64ecd6d

Please sign in to comment.