-
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] add rust pulsar and topic management
- Loading branch information
Showing
16 changed files
with
2,108 additions
and
84 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,21 @@ | ||
# Default configuration for Chroma worker | ||
# In the long term, every service should have an entry in this file | ||
# and this can become the global configuration file for Chroma | ||
# for now we nest it in the worker directory | ||
|
||
worker: | ||
my_ip: "10.244.0.85" | ||
num_indexing_threads: 4 | ||
pulsar_url: "pulsar://127.0.0.1:6650" | ||
pulsar_tenant: "public" | ||
pulsar_namespace: "default" | ||
kube_namespace: "chroma" | ||
assignment_policy: | ||
RendezvousHashing: | ||
hasher: Murmur3 | ||
memberlist_provider: | ||
CustomResource: | ||
memberlist_name: "worker-memberlist" | ||
queue_size: 100 | ||
ingest: | ||
queue_size: 100 |
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,3 +1,3 @@ | ||
mod assignment_policy; | ||
pub(crate) mod assignment_policy; | ||
pub(crate) mod config; | ||
mod rendezvous_hash; |
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,6 @@ | ||
use worker::worker_entrypoint; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
worker_entrypoint().await; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use serde::Deserialize; | ||
|
||
#[derive(Deserialize)] | ||
pub(crate) struct IngestConfig { | ||
pub(crate) queue_size: usize, | ||
} |
Oops, something went wrong.