Skip to content
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

feat(rel): add syntactic code intel worker service #242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jdpleiness
Copy link
Contributor

@jdpleiness jdpleiness commented Feb 18, 2025

Description

Add SCIW service to deployment.


Checklist

Test plan

Verified service is running and healthy:

deploy-sourcegraph-k8s 02-18-feat_rel_add_syntactic_code_intel_worker_service * um
❯ k get pods -n ns-sourcegraph
NAME                                           READY   STATUS    RESTARTS        AGE
blobstore-67ddf96c55-j5qlh                     1/1     Running   0               9m45s
codeinsights-db-0                              2/2     Running   0               9m44s
codeintel-db-0                                 2/2     Running   0               9m44s
gitserver-0                                    1/1     Running   2 (8m2s ago)    9m44s
grafana-0                                      1/1     Running   0               9m44s
indexed-search-0                               2/2     Running   0               9m44s
node-exporter-kbwgv                            1/1     Running   0               9m44s
pgsql-0                                        2/2     Running   0               9m44s
precise-code-intel-worker-69c4dd7648-2dqwk     1/1     Running   1 (8m14s ago)   9m45s
prometheus-54f89f9959-dsj44                    1/1     Running   0               9m45s
redis-cache-84cc945d5c-rzsbm                   2/2     Running   0               9m45s
redis-store-5bbf47654b-vdjjx                   2/2     Running   0               9m44s
repo-updater-bbcf9c47d-shghn                   1/1     Running   5 (8m37s ago)   9m44s
searcher-0                                     1/1     Running   0               9m44s
sourcegraph-frontend-765565bbd5-kbvxh          1/1     Running   0               9m44s
sourcegraph-frontend-765565bbd5-l2qq7          1/1     Running   0               9m44s
symbols-0                                      1/1     Running   0               9m43s
syntactic-code-intel-worker-86b4558fd8-rsg9h   1/1     Running   0               3m16s
syntactic-code-intel-worker-86b4558fd8-t8wcc   1/1     Running   0               3m16s
syntect-server-767b459548-94fxl                1/1     Running   0               9m44s
worker-d4cf796b7-mwxjq                         1/1     Running   0               9m44s

deploy-sourcegraph-k8s 02-18-feat_rel_add_syntactic_code_intel_worker_service * um
❯ k describe pod syntactic-code-intel-worker-86b4558fd8-rsg9h -n ns-sourcegraph
Name:             syntactic-code-intel-worker-86b4558fd8-rsg9h
Namespace:        ns-sourcegraph
Priority:         0
Service Account:  default
Node:             sourcegraph-control-plane/192.168.97.2
Start Time:       Tue, 18 Feb 2025 16:24:21 -0500
Labels:           app=syntactic-code-intel-worker
                  deploy=sourcegraph
                  pod-template-hash=86b4558fd8
Annotations:      <none>
Status:           Running
IP:               10.244.0.38
IPs:
  IP:           10.244.0.38
Controlled By:  ReplicaSet/syntactic-code-intel-worker-86b4558fd8
Containers:
  syntactic-code-intel-worker:
    Container ID:   containerd://4b1942a3ef2ca9725544e76a0102e2119a873711f605e93da1dc9c3cecbfe601
    Image:          index.docker.io/sourcegraph/syntactic-code-intel-worker:6.0.0@sha256:50bdeb38b196f0fc21404969016bf8263f78144292e905867e93480f66c8251c
    Image ID:       docker.io/sourcegraph/syntactic-code-intel-worker@sha256:50bdeb38b196f0fc21404969016bf8263f78144292e905867e93480f66c8251c
    Ports:          3188/TCP, 6060/TCP
    Host Ports:     0/TCP, 0/TCP
    State:          Running
      Started:      Tue, 18 Feb 2025 16:24:22 -0500
    Ready:          True
    Restart Count:  0
    Limits:
      cpu:     2
      memory:  4G
    Requests:
      cpu:      100m
      memory:   250M                                                                                                                                               Liveness:   http-get http://:debug/healthz delay=60s timeout=5s period=10s #success=1 #failure=3                                                               Readiness:  http-get http://:debug/ready delay=0s timeout=5s period=5s #success=1 #failure=3                                                                   Environment:
      SYNTACTIC_CODE_INTEL_BACKEND:              blobstore
      SYNTACTIC_CODE_INTEL_UPLOAD_AWS_ENDPOINT:  http://blobstore:9000
      SYNTACTIC_CODE_INTEL_WORKER_ADDR:          :3188
      POD_NAME:                                  syntactic-code-intel-worker-86b4558fd8-rsg9h (v1:metadata.name)
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-q8x7x (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   True
  Initialized                 True
  Ready                       True
  ContainersReady             True
  PodScheduled                True
Volumes:
  kube-api-access-q8x7x:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason     Age    From               Message
  ----     ------     ----   ----               -------
  Normal   Scheduled  3m28s  default-scheduler  Successfully assigned ns-sourcegraph/syntactic-code-intel-worker-86b4558fd8-rsg9h to sourcegraph-control-plane
  Normal   Pulled     3m27s  kubelet            Container image "index.docker.io/sourcegraph/syntactic-code-intel-worker:6.0.0@sha256:50bdeb38b196f0fc21404969016bf8263f78144292e905867e93480f66c8251c" already present on machine
  Normal   Created    3m27s  kubelet            Created container: syntactic-code-intel-worker
  Normal   Started    3m27s  kubelet            Started container syntactic-code-intel-worker
  Warning  Unhealthy  3m27s  kubelet            Readiness probe failed: Get "http://10.244.0.38:6060/ready": dial tcp 10.244.0.38:6060: connect: connection refused

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jdpleiness jdpleiness requested review from antonsviridov-src and a team February 18, 2025 21:36
@jdpleiness jdpleiness marked this pull request as ready for review February 18, 2025 21:36
@jdpleiness jdpleiness force-pushed the 02-18-feat_rel_add_syntactic_code_intel_worker_service branch from 288972f to 1a7734b Compare March 5, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants