-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a flag to only capture metadata * Add TPC-C benchmark * Fixed replay and retro algorithm. * Fixed postgres demo
- Loading branch information
Showing
60 changed files
with
3,172 additions
and
1,019 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 0 additions & 83 deletions
83
postgres-demo/src/main/java/org/dbos/apiary/postgresdemo/executable/RollbackExecutable.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# ----------------------------- | ||
# Changed for Apiary | ||
# ----------------------------- | ||
track_commit_timestamp = off # default off, collect timestamp of transaction commit | ||
# (change requires restart) | ||
max_connections = 200 # default 100, (change requires restart) | ||
|
||
# ----------------------------- | ||
# Default settings. | ||
# ----------------------------- | ||
listen_addresses = '*' | ||
# comma-separated list of addresses; | ||
# defaults to 'localhost'; use '*' for all | ||
# (change requires restart) | ||
port = 5433 # (change requires restart) | ||
shared_buffers = 128MB # min 128kB | ||
# (change requires restart) | ||
dynamic_shared_memory_type = posix # the default is the first option | ||
# supported by the operating system: | ||
# posix | ||
# sysv | ||
# windows | ||
# mmap | ||
# (change requires restart) | ||
max_wal_size = 1GB | ||
min_wal_size = 80MB | ||
log_timezone = 'Etc/UTC' | ||
|
||
# - Locale and Formatting - | ||
datestyle = 'iso, mdy' | ||
#intervalstyle = 'postgres' | ||
timezone = 'Etc/UTC' | ||
|
||
# These settings are initialized by initdb, but they can be changed. | ||
lc_messages = 'en_US.utf8' # locale for system error message | ||
# strings | ||
lc_monetary = 'en_US.utf8' # locale for monetary formatting | ||
lc_numeric = 'en_US.utf8' # locale for number formatting | ||
lc_time = 'en_US.utf8' # locale for time formatting | ||
|
||
# default configuration for text search | ||
default_text_search_config = 'pg_catalog.english' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# ----------------------------- | ||
# Changed for Apiary | ||
# ----------------------------- | ||
track_commit_timestamp = off # default off, collect timestamp of transaction commit | ||
# (change requires restart) | ||
max_connections = 200 # default 100, (change requires restart) | ||
synchronous_commit = off # synchronization level; | ||
# off, local, remote_write, remote_apply, or on | ||
|
||
# ----------------------------- | ||
# Default settings. | ||
# ----------------------------- | ||
listen_addresses = '*' | ||
# comma-separated list of addresses; | ||
# defaults to 'localhost'; use '*' for all | ||
# (change requires restart) | ||
#port = 5432 # (change requires restart) | ||
shared_buffers = 8GB # min 128kB | ||
# (change requires restart) | ||
dynamic_shared_memory_type = posix # the default is the first option | ||
# supported by the operating system: | ||
# posix | ||
# sysv | ||
# windows | ||
# mmap | ||
# (change requires restart) | ||
max_wal_size = 1GB | ||
min_wal_size = 80MB | ||
log_timezone = 'Etc/UTC' | ||
|
||
# - Locale and Formatting - | ||
datestyle = 'iso, mdy' | ||
#intervalstyle = 'postgres' | ||
timezone = 'Etc/UTC' | ||
|
||
# These settings are initialized by initdb, but they can be changed. | ||
lc_messages = 'en_US.utf8' # locale for system error message | ||
# strings | ||
lc_monetary = 'en_US.utf8' # locale for monetary formatting | ||
lc_numeric = 'en_US.utf8' # locale for number formatting | ||
lc_time = 'en_US.utf8' # locale for time formatting | ||
|
||
# default configuration for text search | ||
default_text_search_config = 'pg_catalog.english' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
SCRIPT_DIR=$(dirname $(realpath $0)) | ||
|
||
# Start Postgres Docker image. | ||
docker pull postgres:14.5-bullseye | ||
|
||
PGCONFIG="" # Postgres config file. | ||
NAME="tpcc-postgres" | ||
PORT=5432 | ||
|
||
if [[ $# -eq 1 ]]; then | ||
PGCONFIG="$PWD/$1" | ||
fi | ||
|
||
|
||
# Set the password to dbos, default user is postgres. | ||
if [[ -z "$PGCONFIG" ]]; then | ||
docker run -d --network host --rm --name="$NAME" --env PGDATA=/var/lib/postgresql-static/data --env POSTGRES_PASSWORD=dbos tpcc-postgres:latest | ||
else | ||
# Use customized config file | ||
docker run -d --network host --rm --name="$NAME" --env PGDATA=/var/lib/postgresql-static/data --env POSTGRES_PASSWORD=dbos \ | ||
-v "$PGCONFIG":/etc/postgresql/postgresql.conf \ | ||
tpcc-postgres:latest -c 'config_file=/etc/postgresql/postgresql.conf' | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.