-
-
Notifications
You must be signed in to change notification settings - Fork 200
feat: update orioledb base image and s3 config script #818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8f2dad6
chore: use base image from s3 branch
sweatybridge edd655f
feat: add s3 config script
sweatybridge 655782c
fix: remove unnecessary timescaledb patches
sweatybridge 1f41dc2
fix: add orioledb to privileged extensions
sweatybridge 55db895
chore: bump orioledb release version
sweatybridge 4ad7443
Update common.vars.pkr.hcl
sweatybridge f4ee942
Merge branch 'develop' into s3-config
sweatybridge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1 +1 @@ | ||
postgres-version = "15.1.0.143" | ||
postgres-version = "15.1.0.144" |
This file contains hidden or 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 hidden or 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,32 @@ | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
|
||
PG_CONF=/etc/postgresql/postgresql.conf | ||
|
||
function configure_orioledb { | ||
echo "Configuring OrioleDB..." | ||
|
||
sed -i \ | ||
-e "s|#max_worker_processes = .*|max_worker_processes = 50 # should fit orioledb.s3_num_workers as long as other workers|" \ | ||
-e "s|#log_min_messages = .*|log_min_messages = debug1 # will log all S3 requests|" \ | ||
-e "s|#archive_mode = off\(.*\)|archive_mode = on\1|" \ | ||
"$PG_CONF" | ||
|
||
echo " | ||
archive_library = 'orioledb' | ||
orioledb.main_buffers = 1GB | ||
orioledb.undo_buffers = 256MB | ||
orioledb.s3_num_workers = 20 # should be enough for comfortable work | ||
orioledb.s3_mode = true | ||
orioledb.s3_host = '$S3_HOST' # replace with your bucket URL, accelerated buckets are recommended | ||
orioledb.s3_region = '$S3_REGION' # replace with your S3 region | ||
orioledb.s3_accesskey = '$S3_ACCESS_KEY' # replace with your S3 key | ||
orioledb.s3_secretkey = '$S3_SECRET_KEY' # replace with your S3 secret key | ||
" >> "$PG_CONF" | ||
} | ||
|
||
if ! grep -q orioledb "$PG_CONF"; then | ||
configure_orioledb | ||
fi | ||
|
||
docker-entrypoint.sh "$@" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.