From b255c118ba16a5f831df2778776d3fce96dfb61a Mon Sep 17 00:00:00 2001 From: Tom McLean Date: Fri, 28 Jul 2023 10:53:38 +0100 Subject: [PATCH 1/3] feat: Adding non-docker learning test script --- scripts/run-learning-test.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 scripts/run-learning-test.sh diff --git a/scripts/run-learning-test.sh b/scripts/run-learning-test.sh new file mode 100755 index 000000000..6ca85183c --- /dev/null +++ b/scripts/run-learning-test.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +python -m vega_sim.reinforcement.run_rl_agent --rl-max-it $1 From 0a9a6e5e05dbe034281fae230fda37ca36e4b3a4 Mon Sep 17 00:00:00 2001 From: Tom McLean Date: Fri, 28 Jul 2023 10:59:32 +0100 Subject: [PATCH 2/3] feat: Add non-docker notebook test --- scripts/run-example-notebook-test.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 scripts/run-example-notebook-test.sh diff --git a/scripts/run-example-notebook-test.sh b/scripts/run-example-notebook-test.sh new file mode 100755 index 000000000..56970d597 --- /dev/null +++ b/scripts/run-example-notebook-test.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +pytest --junitxml /tmp/notebook-test-results.xml --log-cli-level INFO --nbmake examples/notebooks From 684a0656b1e4c8a4d4ef7a91c51d1b53a206ee6b Mon Sep 17 00:00:00 2001 From: Tom McLean Date: Fri, 28 Jul 2023 11:57:02 +0100 Subject: [PATCH 3/3] feat: Adding parameters to docker run --- vega_sim/null_service.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/vega_sim/null_service.py b/vega_sim/null_service.py index 2dbbc984b..e8a9e5223 100644 --- a/vega_sim/null_service.py +++ b/vega_sim/null_service.py @@ -385,6 +385,25 @@ def manage_vega_processes( data_node_docker_volume = docker_client.volumes.create() data_node_container = docker_client.containers.run( "timescale/timescaledb:2.8.0-pg14", + [ + "postgres", + "-c", + "max_connections=50", + "-c", + "log_destination=stderr", + "-c", + "work_mem=5MB", + "-c", + "huge_pages=off", + "-c", + "shared_memory_type=sysv", + "-c", + "dynamic_shared_memory_type=sysv", + "-c", + "shared_buffers=2GB", + "-c", + "temp_buffers=5MB", + ], detach=True, ports={5432: port_config[Ports.DATA_NODE_POSTGRES]}, volumes=[f"{data_node_docker_volume.name}:/var/lib/postgresql/data"],