Skip to content

Commit

Permalink
fix simulation after config changes #108
Browse files Browse the repository at this point in the history
  • Loading branch information
isuru89 committed Feb 24, 2024
1 parent 9780ff2 commit a3eae2a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ else
fi

if [ "$(proj_build_status stats-api)" == "true" ]; then
do_log "🛠 Building Admin/Stats API Docker Image..."
do_log "🛠 Building Admin/Stats API Docker Image..."
cd services/stats-api || exit 1
docker build -t oasis/stats-api .
cd ../..
Expand Down
2 changes: 1 addition & 1 deletion simulations/run-simulation.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!bin/bash
#!/bin/bash

mvn install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private static void runToEngine() throws Exception {
EngineContext.Builder builder = EngineContext.builder()
.withConfigs(configs)
.installModule(PointsModuleFactory.class);
Db dbPool = RedisDb.create(configs, "oasis.redis");
Db dbPool = RedisDb.create(configs, "oasis.enginedb.configs");
dbPool.init();
builder.withDb(dbPool);

Expand Down
21 changes: 9 additions & 12 deletions simulations/src/main/resources/simulation-configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ oasis:
rule: 5
signal: 10

redis:
host: "localhost"
port: 6379
enginedb:
configs:
url: "redis://localhost:6379"

pool:
max: 16
maxIdle: 8
minIdle: 4
pool:
max: 16
maxIdle: 8
minIdle: 4

dispatcher:
eventstream:
configs:
brokerUrls: "kafka:9092"

Expand Down Expand Up @@ -53,7 +53,4 @@ oasis:


#engineEventConsumer:
# props:

eventstream:
impl: "io.github.oasis.ext.kafkastream.KafkaStreamFactory"
# props:

0 comments on commit a3eae2a

Please sign in to comment.