Skip to content

jlpadilla/benchmark-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

benchmark-postgres

Repo to benchmark postgres performance

Prerequisite

You need an instance of PostgreSQL. Here are some alternatives to deploy postgres:

You will need the database URL for your Postgres instance.

postgresql://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}

Run locally

Performance is significantly slower.

  1. Open a port-forward to your postgres instance as described here.
  2. Set the environment variables DB_USER, DB_PASSWORD, DB_HOST, DB_PORT, and DB_NAME

Build docker image and run in OCP cluster

Build the image

docker build . -t benchmark-postgres

Push image to quay. Get push access to quay.io/jlpadilla/benchmark-postgres from Jorge or Sherin.

docker login -u {YOUR-QUAY_USER} quay.io
docker tag benchmark-postgres quay.io/${QUAY_USER}/benchmark-postgres:latest 
docker push quay.io/${QUAY_USER}/benchmark-postgres:latest 

Run Job in OCP cluster

oc login ...
oc apply -f deploy/benchmark-job.yaml

Updated: Sep 2

About

Repo to benchmark postgres performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published