Repository navigation
feat(runtime): durable Work Ledger rebased onto current master #2270
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
Changes from 1 commit
dd80249
3243572
3026ca2
9683d25
b311e14
02ca795
8f74ab2
8005d53
1fa2a0c
feb9e7f
11f4319
cf81c1a
886a0cf
843aac3
d9f33be
5fa749d
20bd462
c9934b7
719c826
33eb25e
ccef697
7512efb
448e152
88baf5a
4e8b30a
a8cb90e
5cfc8e1
b175d3a
da48a23
5a0a1f4
3c03a47
fad4d46
6e7bac2
3c37a15
deda9e1
3df12c9
e03e4ee
b1eef2f
2dcc253
51c3e61
294a3d9
44d6b76
6c2aa7a
8ea1ae2
3535c29
906beae
44cc6b0
cd7e4be
9efb56f
89e8170
2101fe8
15a75c3
73fb088
9da3a20
95e1626
8464c73
0658894
6836557
2cb8da3
182106b
b9589ab
7d716b6
253ee2a
c8b62cf
fb2a984
0bb9eda
c9dd22b
bfbd2e9
ed3accd
e767946
0a478b2
5a8dd23
a25b6ad
7db9ebe
3eaccdd
9c43653
8bc8aff
50a3b61
6a889ff
8099c4c
638ec46
95e0a35
8faa834
88c86f6
96d6db3
eb6a9dc
d29754c
8d9d107
c441634
c08c8c6
db2c2cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| name: powercontext-distributed | ||
|
|
||
| x-runtime: &runtime | ||
| image: ${POWERCONTEXT_IMAGE:-powercontext-server:local} | ||
| restart: unless-stopped | ||
| environment: &shared-environment | ||
| POWERCONTEXT_SERVER_DATABASE_KIND: oceanbase | ||
| POWERCONTEXT_SERVER_DATABASE_URL: ${POWERCONTEXT_SERVER_DATABASE_URL:?set an OceanBase URL} | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_MODE: distributed | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_BEHAVIOR_REVISION: ${POWERCONTEXT_BEHAVIOR_REVISION:-distributed-v1} | ||
| POWERCONTEXT_SERVER_RUNTIME_SCHEDULE_SECONDS: ${POWERCONTEXT_MEMORY_SCHEDULE_SECONDS:-60} | ||
| POWERCONTEXT_SERVER_RUNTIME_EXPERIENCE_SCHEDULE_SECONDS: ${POWERCONTEXT_EXPERIENCE_SCHEDULE_SECONDS:-60} | ||
|
|
||
| services: | ||
| migrate: | ||
| <<: *runtime | ||
| restart: "no" | ||
| command: ["server", "migrate"] | ||
| environment: | ||
| <<: *shared-environment | ||
| # The migration command does not start a Runtime or register this role; | ||
| # a valid distributed role is still required while parsing ServerSettings. | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ROLE: api | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ID: migrator | ||
|
|
||
| api-a: | ||
| <<: *runtime | ||
| command: ["server", "run"] | ||
| environment: | ||
| <<: *shared-environment | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ROLE: api | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ID: api-a | ||
| POWERCONTEXT_SERVER_AUTH_ENABLED: "true" | ||
| POWERCONTEXT_SERVER_AUTH_TOKEN: ${POWERCONTEXT_SERVER_AUTH_TOKEN:?set an API bearer token} | ||
| POWERCONTEXT_SERVER_RATE_LIMIT_ENABLED: "true" | ||
| ports: ["127.0.0.1:8001:8000"] | ||
| depends_on: | ||
| migrate: | ||
| condition: service_completed_successfully | ||
|
|
||
| api-b: | ||
| <<: *runtime | ||
| command: ["server", "run"] | ||
| environment: | ||
| <<: *shared-environment | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ROLE: api | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ID: api-b | ||
| POWERCONTEXT_SERVER_AUTH_ENABLED: "true" | ||
| POWERCONTEXT_SERVER_AUTH_TOKEN: ${POWERCONTEXT_SERVER_AUTH_TOKEN:?set an API bearer token} | ||
| POWERCONTEXT_SERVER_RATE_LIMIT_ENABLED: "true" | ||
| ports: ["127.0.0.1:8002:8000"] | ||
| depends_on: | ||
| migrate: | ||
| condition: service_completed_successfully | ||
|
|
||
| scheduler-a: | ||
| <<: *runtime | ||
| command: ["server", "run"] | ||
| environment: | ||
| <<: *shared-environment | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ROLE: scheduler | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ID: scheduler-a | ||
| POWERCONTEXT_SERVER_DASHBOARD_ENABLED: "false" | ||
| POWERCONTEXT_SERVER_MCP_ENABLED: "false" | ||
| depends_on: | ||
| migrate: | ||
| condition: service_completed_successfully | ||
|
|
||
| scheduler-b: | ||
| <<: *runtime | ||
| command: ["server", "run"] | ||
| environment: | ||
| <<: *shared-environment | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ROLE: scheduler | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ID: scheduler-b | ||
| POWERCONTEXT_SERVER_DASHBOARD_ENABLED: "false" | ||
| POWERCONTEXT_SERVER_MCP_ENABLED: "false" | ||
| depends_on: | ||
| migrate: | ||
| condition: service_completed_successfully | ||
|
|
||
| worker-a: | ||
| <<: *runtime | ||
| command: ["server", "run"] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wired to a restricted listener.
|
||
| environment: | ||
| <<: *shared-environment | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ROLE: worker | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ID: worker-a | ||
| POWERCONTEXT_SERVER_DASHBOARD_ENABLED: "false" | ||
| POWERCONTEXT_SERVER_MCP_ENABLED: "false" | ||
| POWERCONTEXT_SERVER_INFERENCE_GENERATION_MODEL: ${POWERCONTEXT_GENERATION_MODEL:?set a generation model} | ||
| OPENAI_API_KEY: ${OPENAI_API_KEY:-} | ||
| ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-} | ||
| depends_on: | ||
| migrate: | ||
| condition: service_completed_successfully | ||
|
|
||
| worker-b: | ||
| <<: *runtime | ||
| command: ["server", "run"] | ||
| environment: | ||
| <<: *shared-environment | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ROLE: worker | ||
| POWERCONTEXT_SERVER_DEPLOYMENT_ID: worker-b | ||
| POWERCONTEXT_SERVER_DASHBOARD_ENABLED: "false" | ||
| POWERCONTEXT_SERVER_MCP_ENABLED: "false" | ||
| POWERCONTEXT_SERVER_INFERENCE_GENERATION_MODEL: ${POWERCONTEXT_GENERATION_MODEL:?set a generation model} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both Worker definitions now interpolate the documented variable: Head
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed on
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 44cc6b0: both Worker services now interpolate the documented
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 44cc6b0, same change as the thread above: lines 119 and 135 now read |
||
| OPENAI_API_KEY: ${OPENAI_API_KEY:-} | ||
| ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-} | ||
| depends_on: | ||
| migrate: | ||
| condition: service_completed_successfully | ||
Uh oh!
There was an error while loading. Please reload this page.