Skip to content

Commit

Permalink
Reduce memory for conda worker and add more info logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant Tiwari committed May 5, 2024
1 parent 9a9ed3e commit 5b84bd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_nebari/stages/kubernetes_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class CondaStore(schema.Base):
default_namespace: str = "nebari-git"
object_storage: str = "200Gi"
max_workers: int = 50
worker_resources: dict = {"requests": {"cpu": "1", "memory": "7Gi"}}
worker_resources: dict = {"requests": {"cpu": "1", "memory": "4Gi"}}


class NebariWorkflowController(schema.Base):
Expand Down
3 changes: 3 additions & 0 deletions tests/tests_deployment/test_conda_store_scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def fetch_token():
"service-tokens"
].keys()
][0]
self.log.info(f"Authentication token: {token}")
return token

def read_namespaced_config_map(self):
Expand Down Expand Up @@ -95,7 +96,9 @@ def setUp(self):
self.configuration = config.load_kube_config()
# Get token from pre-defined tokens.
token = self.fetch_token()
self.log.info(f"Authentication token: {token}")
self.headers = {"Authorization": f"Bearer {token}"}
self.log.info(f"Authentication headers: {self.headers}")

# Read conda-store-config
self.config_map = self.read_namespaced_config_map()
Expand Down

0 comments on commit 5b84bd2

Please sign in to comment.