-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Compaction service setup (#1945)
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - ... - New functionality - This PR adds the necessary artifacts to setup compaction service. ## Test plan *How are these changes tested?* - [ ] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?*
- Loading branch information
Showing
6 changed files
with
119 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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 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,64 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: compaction-service | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: compaction-service | ||
template: | ||
metadata: | ||
labels: | ||
app: compaction-service | ||
member-type: compaction-service | ||
spec: | ||
serviceAccountName: compaction-service-serviceaccount | ||
containers: | ||
- name: compaction-service | ||
image: "{{ .Values.compactionService.image.repository }}:{{ .Values.compactionService.image.tag }}" | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 50051 | ||
env: | ||
- name: CHROMA_compaction-service__MY_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.podIP | ||
topologySpreadConstraints: | ||
- maxSkew: 1 | ||
topologyKey: "kubernetes.io/hostname" | ||
whenUnsatisfiable: ScheduleAnyway | ||
labelSelector: | ||
matchLabels: | ||
member-type: compaction-service | ||
volumes: | ||
- name: chroma | ||
emptyDir: {} | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: compaction-service-serviceaccount | ||
namespace: {{ .Values.namespace }} | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: compaction-service-serviceaccount-rolebinding | ||
namespace: {{ .Values.namespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: pod-watcher | ||
subjects: | ||
- kind: ServiceAccount | ||
name: compaction-service-serviceaccount | ||
namespace: {{ .Values.namespace }} | ||
|
||
--- |
This file contains 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 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 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 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,12 +1,15 @@ | ||
# Readme | ||
|
||
This folder houses the Rust code for the query and compactor nodes. It is a standard rust crate managed using cargo. | ||
|
||
### Testing | ||
|
||
`cargo test` | ||
|
||
### Building | ||
`cargo build` | ||
|
||
`cargo build` | ||
|
||
### Rust version | ||
Use rust 1.74.0 or greater. | ||
|
||
Use rust 1.74.0 or greater. |