-
Notifications
You must be signed in to change notification settings - Fork 45
Add TTL index creation for runs collection in state-manager( Issue #432) #565
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
Closed
Closed
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a0ec478
Add TTL index creation for runs collection in state-manager
Brijesh-Thakkar 85db717
Add TTL indexing, make TTL configurable, and remove hardcoded secrets…
Brijesh-Thakkar 90c21d8
Apply review fixes: remove default secrets, configure TTL, improve ty…
Brijesh-Thakkar fb05217
Fix healthchecks to use curl, track package-lock.json, and clarify mi…
Brijesh-Thakkar 8c5a070
Expose RUN_TTL_DAYS in docker-compose to allow runs-specific TTL over…
Brijesh-Thakkar ece253c
Modified docker-compose
Brijesh-Thakkar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,28 @@ | ||
| # Ignore temp directory and temp files at repository root | ||
| /temp* | ||
| !/temp/.gitkeep | ||
| # node | ||
| node_modules/ | ||
| npm-debug.log | ||
| yarn-debug.log | ||
| yarn-error.log | ||
| package-lock.json | ||
|
|
||
| # env | ||
| .env | ||
| .env.local | ||
| .env.*.local | ||
| .env.backup | ||
| .env.example | ||
|
|
||
| # python | ||
| __pycache__/ | ||
| *.py[cod] | ||
| .venv/ | ||
| venv/ | ||
|
|
||
| # OS / IDE | ||
| .DS_Store | ||
| .vscode/ | ||
| .idea/ | ||
|
|
||
| # logs | ||
| *.log | ||
| logs/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| services: | ||
| exosphere-state-manager: | ||
| build: | ||
| context: ./state-manager | ||
| dockerfile: Dockerfile | ||
| image: exosphere-state-manager:local | ||
| container_name: exosphere-state-manager | ||
| restart: unless-stopped | ||
| environment: | ||
| - MONGO_URI=${MONGO_URI:?MONGO_URI must be set} | ||
| - STATE_MANAGER_SECRET=${STATE_MANAGER_SECRET:?STATE_MANAGER_SECRET must be set} | ||
| - MONGO_DATABASE_NAME=${MONGO_DATABASE_NAME:-exosphere} | ||
| - SECRETS_ENCRYPTION_KEY=${SECRETS_ENCRYPTION_KEY:?SECRETS_ENCRYPTION_KEY must be set} | ||
| - TTL_DAYS=${TTL_DAYS:-30} | ||
| ports: | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| - "8000:8000" | ||
| networks: | ||
| - exosphere-network | ||
| healthcheck: | ||
| test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| start_period: 30s | ||
|
|
||
| exosphere-dashboard: | ||
| image: ghcr.io/exospherehost/exosphere-dashboard:${EXOSPHERE_TAG:-latest} | ||
| pull_policy: always | ||
| container_name: exosphere-dashboard | ||
| restart: unless-stopped | ||
| environment: | ||
| # Server-side secure configuration (NOT exposed to browser) | ||
| - EXOSPHERE_STATE_MANAGER_URI=${EXOSPHERE_STATE_MANAGER_URI:-http://exosphere-state-manager:8000} | ||
| - EXOSPHERE_API_KEY=${EXOSPHERE_API_KEY:?EXOSPHERE_API_KEY must be set} | ||
| # Client-side configuration (exposed to browser) | ||
| - NEXT_PUBLIC_DEFAULT_NAMESPACE=${NEXT_PUBLIC_DEFAULT_NAMESPACE:-default} | ||
| depends_on: | ||
| exosphere-state-manager: | ||
| condition: service_healthy | ||
| ports: | ||
| - "3000:3000" | ||
| networks: | ||
| - exosphere-network | ||
| healthcheck: | ||
| test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000', (res) => process.exit(res.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| start_period: 30s | ||
|
|
||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| networks: | ||
| exosphere-network: | ||
| driver: bridge | ||
| attachable: true | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "dependencies": { | ||
| "mongodb": "^7.0.0" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.