Commit 19240d90 authored by iSergio's avatar iSergio
Browse files

Configure pgpool connections

parent 99499629
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -117,6 +117,9 @@ if [[ $DB_CLUSTER == false ]]; then
    sed -i '/^backend_weight/s/^/#/' $PGPOOL_CONFIG
    sed -i '/^backend_data_directory/s/^/#/' $PGPOOL_CONFIG
    sed -i '/^backend_flag/s/^/#/' $PGPOOL_CONFIG
else
    sed -i 's/num_init_children = 32/num_init_children = 1000/g' $PGPOOL_CONFIG
    sed -i 's/max_pool = 4/max_pool = 1/g' $PGPOOL_CONFIG
fi

echo "postgres:"`pg_md5 postgres` >> $PGPOOL_DIR/pcp.conf