HSA homework 1
- Clone the repo to local machine
- Head to
./serveron local machine and runnpm install(required once to create node_modules folder before it will be projected to inner docker container filesystem) - Head to root of the cloned repo
- Run
docker-compose up -d - Enter into the console of the
hsa_12_servercontainer- run
npx typeorm-ts-node-commonjs migration:run -d ./src/database/config/ormconfig.ts
- run
- Go to
localhost:4444- configure datasource to influx
- import dashboard from
https://grafana.com/grafana/dashboards/8709-tig-metrics/
- Install siege (via homebrew/apt get etc)
- Modify siege config to use custom urls file OR edit default file to contents of
./siege/siege-test.txt - In host machine console run
siege- this will initiate siege script to process urls given in file mentioned above - Go to
localhost:4444and observe metrics changes
If siege is not your to-go option just configure your tool of choice to bombard POST http://localhost:5678/api/v1/unit-1/random with requests.
This endpoint creates dummy entity with random generated id (UUIDv4) and store it to postgres, mongo and make an index of created model in elasticsearch/








