Skip to content

Commit

Permalink
CI: increase max connections for postgres. (#5509)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 authored Jan 4, 2025
1 parent d031693 commit cc04058
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/scripts/start_meta_engine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,16 @@ start_meta_engine(){
if lsof -i:5432; then
echo "postgres is already running"
else
# default max_connections is 100.
docker run --name postgresql \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-p 5432:5432 \
-v /tmp/postgresql:/var/lib/postgresql/data \
-d postgres
-d postgres \
-N 300
sleep 10
docker exec -i postgresql psql -U postgres -c "SHOW max_connections;"
fi
fi

Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/rmfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ name: "rmr-test"
on:
push:
branches:
- 'main'
- 'release-**'
paths-ignore:
- 'docs/**'
- '**.md'
paths:
- '**/rmfiles.yml'
pull_request:
branches:
- 'main'
- 'release-**'
paths:
- '**/rmfiles.yml'
schedule:
- cron: '0 20 * * *'
workflow_dispatch:
Expand Down

0 comments on commit cc04058

Please sign in to comment.