mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
Feature/librarian (#307)
* Bring QDrant up-to-date * Tables for data from queue outputs - Pass single Pulsar client to everything in gateway & librarian - Pulsar listener-name support in gateway - PDF and text load working in librarian * Complete Cassandra schema * Add librarian support to templates
This commit is contained in:
parent
f350abb415
commit
f7df2df266
35 changed files with 500 additions and 145 deletions
43
templates/components/librarian.jsonnet
Normal file
43
templates/components/librarian.jsonnet
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
local base = import "base/base.jsonnet";
|
||||
local images = import "values/images.jsonnet";
|
||||
local url = import "values/url.jsonnet";
|
||||
local minio = import "stores/minio.jsonnet";
|
||||
local cassandra = import "stores/cassandra.jsonnet";
|
||||
|
||||
{
|
||||
|
||||
"librarian" +: {
|
||||
|
||||
create:: function(engine)
|
||||
|
||||
local container =
|
||||
engine.container("librarian")
|
||||
.with_image(images.trustgraph_flow)
|
||||
.with_command([
|
||||
"librarian",
|
||||
"-p",
|
||||
url.pulsar,
|
||||
])
|
||||
.with_limits("0.5", "256M")
|
||||
.with_reservations("0.1", "256M");
|
||||
|
||||
local containerSet = engine.containers(
|
||||
"librarian", [ container ]
|
||||
);
|
||||
|
||||
local service =
|
||||
engine.internalService(containerSet)
|
||||
.with_port(8000, 8000, "metrics");
|
||||
|
||||
engine.resources([
|
||||
containerSet,
|
||||
service,
|
||||
])
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
// Minio and Cassandra are used by the Librarian
|
||||
+ minio + cassandra
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue