-
Notifications
You must be signed in to change notification settings - Fork 12
feat(helm): Add scheduler service to the Helm chart. #403
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
Merged
sitaowang1998
merged 21 commits into
y-scope:main
from
20001020ycx:feat/2026-07-16-helm-scheduler
Jul 22, 2026
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
eaadd32
Add host type alias
sitaowang1998 8e4456f
Replace host in core
sitaowang1998 27b7e7a
Update proto serde
sitaowang1998 233e43b
Update scheduler
sitaowang1998 9d695cb
Update db
sitaowang1998 016bf89
Update lock
sitaowang1998 db62d43
feat(helm): Add scheduler service to the Helm chart.
20001020ycx 8660491
grammar
20001020ycx c8d01f9
Merge branch 'main' into hostname
sitaowang1998 048fad8
Merge branch 'hostname' into feat/2026-07-16-helm-scheduler
sitaowang1998 970ee69
Remove hostname resolution in helm
sitaowang1998 67d8bbd
Merge branch 'main' into feat/2026-07-16-helm-scheduler
sitaowang1998 14081b2
Merge branch 'main' into feat/2026-07-16-helm-scheduler
sitaowang1998 a952898
Merge branch 'main' into feat/2026-07-16-helm-scheduler
sitaowang1998 4352c6a
Merge branch 'main' into feat/2026-07-16-helm-scheduler
sitaowang1998 a2f38f3
Merge branch 'main' into feat/2026-07-16-helm-scheduler
sitaowang1998 8234c56
Change config
sitaowang1998 f3cbc9a
Rename to policy
sitaowang1998 0b0efa1
Merge branch 'scheduler-config' into feat/2026-07-16-helm-scheduler
sitaowang1998 6cd96d1
Update config in helm
sitaowang1998 7a23b79
Merge branch 'main' into feat/2026-07-16-helm-scheduler
sitaowang1998 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
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
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
44 changes: 44 additions & 0 deletions
44
tools/deployment/spider-helm/templates/scheduler-deployment.yaml
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,44 @@ | ||
| apiVersion: "apps/v1" | ||
| kind: "Deployment" | ||
| metadata: | ||
| name: {{ include "spider.componentFullname" (dict "root" . "component" "scheduler") }} | ||
| labels: | ||
| {{- include "spider.labels" . | nindent 4 }} | ||
| app.kubernetes.io/component: "scheduler" | ||
| spec: | ||
| replicas: 1 | ||
|
20001020ycx marked this conversation as resolved.
|
||
| selector: | ||
| matchLabels: | ||
| {{- include "spider.selectorLabels" . | nindent 6 }} | ||
| app.kubernetes.io/component: "scheduler" | ||
| template: | ||
| metadata: | ||
| labels: | ||
| {{- include "spider.labels" . | nindent 8 }} | ||
| app.kubernetes.io/component: "scheduler" | ||
| spec: | ||
| containers: | ||
| - name: "scheduler" | ||
| image: {{ include "spider.imageRef" (dict "root" . "component" "scheduler") | quote }} | ||
| imagePullPolicy: {{ .Values.image.scheduler.pullPolicy | quote }} | ||
| command: ["spider-scheduler", "--config", "/etc/spider/scheduler.yaml"] | ||
| ports: | ||
| - name: "grpc" | ||
| containerPort: {{ .Values.spiderConfig.scheduler.port }} | ||
| volumeMounts: | ||
| - name: "config" | ||
| mountPath: "/etc/spider/scheduler.yaml" | ||
| subPath: "scheduler.yaml" | ||
| readOnly: true | ||
| readinessProbe: | ||
| {{- include "spider.readinessProbeTimings" . | nindent 12 }} | ||
| tcpSocket: | ||
| port: "grpc" | ||
| livenessProbe: | ||
| {{- include "spider.livenessProbeTimings" . | nindent 12 }} | ||
| tcpSocket: | ||
| port: "grpc" | ||
| volumes: | ||
| - name: "config" | ||
| configMap: | ||
| name: {{ include "spider.componentFullname" (dict "root" . "component" "config") }} | ||
15 changes: 15 additions & 0 deletions
15
tools/deployment/spider-helm/templates/scheduler-service.yaml
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,15 @@ | ||
| apiVersion: "v1" | ||
| kind: "Service" | ||
| metadata: | ||
| name: {{ include "spider.componentFullname" (dict "root" . "component" "scheduler") }} | ||
| labels: | ||
| {{- include "spider.labels" . | nindent 4 }} | ||
| app.kubernetes.io/component: "scheduler" | ||
| spec: | ||
| selector: | ||
| {{- include "spider.selectorLabels" . | nindent 4 }} | ||
| app.kubernetes.io/component: "scheduler" | ||
| ports: | ||
| - name: "grpc" | ||
| port: {{ .Values.spiderConfig.scheduler.port }} | ||
| targetPort: "grpc" |
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 |
|---|---|---|
|
|
@@ -6,6 +6,10 @@ image: | |
| pullPolicy: "Always" | ||
| repository: "mariadb" | ||
| tag: "10.11.16" | ||
| scheduler: | ||
| pullPolicy: "Always" | ||
| repository: "ghcr.io/y-scope/spider/scheduler" | ||
| tag: "main" | ||
| storage: | ||
| pullPolicy: "Always" | ||
| repository: "ghcr.io/y-scope/spider/storage" | ||
|
|
@@ -30,6 +34,22 @@ spiderConfig: | |
| root_password: "spider-root-password" | ||
| username: "spider-user" | ||
|
|
||
| scheduler: | ||
| connection_pool_size: 4 | ||
| port: 50052 | ||
|
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. How about just 50051?
Collaborator
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. I have tested that setting it to 50051 works. However, I don't see a reason to make it the same with storage's port. |
||
| runtime: | ||
| scheduler: | ||
| policy: "round_robin" | ||
| config: | ||
| active_job_queue_capacity: 64 | ||
| cleanup_ready_task_capacity: 256 | ||
| commit_ready_task_capacity: 256 | ||
| dispatch_queue_capacity: 64 | ||
| finalizing_job_expiration_timeout_sec: 300 | ||
| ready_task_capacity: 65536 | ||
| storage_poll_timeout_ms: 10 | ||
| tick_interval_ms: 5 | ||
|
|
||
| storage: | ||
| port: 50051 | ||
| runtime: | ||
|
|
||
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.