mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 13:16:58 +02:00
PostgreSQL pooler with sharding, load balancing and failover support --- failures: ---- query_router::test::test_prepared_statements stdout ---- thread 'query_router::test::test_prepared_statements' panicked at src/query_router.rs:1883:9: assertion `left == right` failed left: 0 right: 2 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ---- sharding::test::test_pg_bigint_hash stdout ---- thread 'sharding::test::test_pg_bigint_hash' panicked at src/sharding.rs:174:13: assertion `left == right` failed left: 3 right: 0 ---- query_router::test::test_automatic_sharding_insert_update_delete stdout ---- thread 'query_router::test::test_automatic_sharding_insert_update_delete' panicked at src/query_router.rs:1680:9: assertion `left == right` failed left: Some(0) right: Some(2) ---- query_router::test::test_automatic_sharding_key_tpcc stdout ---- thread 'query_router::test::test_automatic_sharding_key_tpcc' panicked at src/query_router.rs:1692:9: assertion `left == right` failed left: Some(0) right: Some(2) ---- query_router::test::test_automatic_sharding_key stdout ---- thread 'query_router::test::test_automatic_sharding_key' panicked at src/query_router.rs:1565:9: assertion `left == right` failed left: 0 right: 2 ---- query_router::test::test_regex_shard_parsing stdout ---- thread 'query_router::test::test_regex_shard_parsing' panicked at src/query_router.rs:1547:9: assertion `left == right` failed left: Some(1) right: Some(2) failures: query_router::test::test_automatic_sharding_insert_update_delete query_router::test::test_automatic_sharding_key query_router::test::test_automatic_sharding_key_tpcc query_router::test::test_prepared_statements query_router::test::test_regex_shard_parsing sharding::test::test_pg_bigint_hash test result: FAILED. 27 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.30s error: test failed, to rerun pass `--lib` >>> ERROR: pgcat: check failed
28 lines
737 B
Bash
28 lines
737 B
Bash
#!/sbin/openrc-run
|
|
|
|
extra_started_commands="reload"
|
|
description_reload="Reload configuration"
|
|
|
|
: ${conffile:="/etc/pgcat/pgcat.toml"}
|
|
command=/usr/sbin/pgcat
|
|
command_args="$conffile --no-color $CMD_OPTS"
|
|
command_background=yes
|
|
: ${command_user:="pgcat"}
|
|
: ${command_group:="pgcat"}
|
|
pidfile=/run/pgcat/${RC_SVCNAME}
|
|
|
|
: ${logdir:="/var/log/pgcat"}
|
|
: ${output_log:="$logdir/${RC_SVCNAME}.log"}
|
|
: ${error_log:="$logdir/${RC_SVCNAME}.log"}
|
|
|
|
required_files="$conffile"
|
|
rc_ulimits="-n ${OPENFILES:-65536}"
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner "$command_user":"$command_group" "$logdir"
|
|
checkpath --directory --owner "$command_user":"$command_group" "${pidfile%/*}"
|
|
}
|
|
|
|
reload() {
|
|
start-stop-daemon --signal HUP --pidfile "$pidfile"
|
|
}
|