No description
Find a file
2024-06-02 23:23:02 +02:00
drivers fixed shard creations 2024-06-01 17:12:31 +02:00
interfaces [Added multishard elastic + Plots] 2024-05-31 15:53:07 +02:00
models [Initial] Scripts are done with data 2024-05-29 02:29:36 +02:00
utils [Instructions] 2024-06-02 23:23:02 +02:00
.gitignore [Added multishard elastic + Plots] 2024-05-31 15:53:07 +02:00
data.json [Initial] Scripts are done with data 2024-05-29 02:29:36 +02:00
main.py [Instructions] 2024-06-02 23:23:02 +02:00
plot-orodruin-opti.png Orodruin data 2024-06-01 15:28:13 +00:00
plot-tma-opti-psql-1-2.png [Dynamic Shards] 2024-05-31 17:24:17 +02:00
plot-tma-opti-psql-1-4.png [Dynamic Shards] 2024-05-31 17:24:17 +02:00
plot-tma-opti.png Orodruin data 2024-06-01 15:28:13 +00:00
README.md [Instructions] 2024-06-02 23:23:02 +02:00
requirements.txt [Added multishard elastic + Plots] 2024-05-31 15:53:07 +02:00

Elastic / PostgreSQL Benchmark

Installation

python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

Configuration

Every configuration available are available at the top of the main.py file to prepare for the run.

For example :

POSTGRES_HOST = "127.0.0.1"
POSTGRES_PORT = "5432"
POSTGRES_DB = "postgres"
POSTGRES_USER = "postgres"
POSTGRES_PASSWORD = "postgres"

ELASTIC_URL = "https://localhost:9200"
ELASTIC_API_KEY = 'Z18xZzFJOEJXTnUzZ2RiTk5YWkw6ekhiRVpQYnVTZ2FhRjFCR3NVUFB4UQ=='
RUN_ELASTIC_WITH_N_SHARDS = [1, 2, 4]

DOCUMENT_MULTIPLICATOR = 10

Run

To run the app simply run the main.py file while inside the python venv

⚠️ Make sure that your configuration in the main.py file is correct.

python -m venv .venv
python main.py