mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
58 lines
918 B
Jsonnet
58 lines
918 B
Jsonnet
local base = import "base.jsonnet";
|
|
local images = import "images.jsonnet";
|
|
local url = import "url.jsonnet";
|
|
local cassandra_hosts = "cassandra";
|
|
local cassandra = import "stores/cassandra.jsonnet";
|
|
|
|
cassandra + {
|
|
|
|
services +: {
|
|
|
|
"store-triples": base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"triples-write-cassandra",
|
|
"-p",
|
|
url.pulsar,
|
|
"-g",
|
|
cassandra_hosts,
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '128M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
"query-triples": base + {
|
|
image: images.trustgraph,
|
|
command: [
|
|
"triples-query-cassandra",
|
|
"-p",
|
|
url.pulsar,
|
|
"-g",
|
|
cassandra_hosts,
|
|
],
|
|
deploy: {
|
|
resources: {
|
|
limits: {
|
|
cpus: '0.1',
|
|
memory: '512M'
|
|
},
|
|
reservations: {
|
|
cpus: '0.1',
|
|
memory: '512M'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
},
|
|
}
|