Skip to content

Commit aecc2a4

Browse files
authored
[crystal/lucky] Fix tests and update dependencies (#9380)
Reduce connection pool size to avoid connection errors like: psycopg2.OperationalError: connection to server at "10.0.0.2", port 5432 failed: FATAL: sorry, too many clients already
1 parent a65d01a commit aecc2a4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

frameworks/Crystal/lucky/lucky.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM crystallang/crystal:1.12.1
1+
FROM crystallang/crystal:1.14.0
22

33
WORKDIR /lucky
44
COPY shard.lock shard.lock
@@ -14,7 +14,7 @@ ENV LUCKY_ENV production
1414

1515
RUN shards build bench --release --no-debug
1616

17-
ENV DATABASE_URL postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world?initial_pool_size=56&max_idle_pool_size=56
17+
ENV DATABASE_URL postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world?initial_pool_size=10&max_idle_pool_size=10
1818

1919
EXPOSE 8080
2020

frameworks/Crystal/lucky/shard.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.0
22
shards:
33
avram:
44
git: https://github.com/luckyframework/avram.git
5-
version: 1.2.0
5+
version: 1.3.0
66

77
backtracer:
88
git: https://github.com/sija/backtracer.cr.git
@@ -30,7 +30,7 @@ shards:
3030

3131
habitat:
3232
git: https://github.com/luckyframework/habitat.git
33-
version: 0.4.8
33+
version: 0.4.9
3434

3535
lucky:
3636
git: https://github.com/luckyframework/lucky.git
@@ -66,7 +66,7 @@ shards:
6666

6767
splay_tree_map:
6868
git: https://github.com/wyhaines/splay_tree_map.cr.git
69-
version: 0.2.2
69+
version: 0.3.0
7070

7171
wordsmith:
7272
git: https://github.com/luckyframework/wordsmith.git

0 commit comments

Comments
 (0)