Skip to content

Commit 8b7e556

Browse files
committed
[crystal/spider-gazelle] Fix tests and update dependencies
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 ddd0952 commit 8b7e556

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

frameworks/Crystal/spider-gazelle/shard.lock

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,65 @@ version: 2.0
22
shards:
33
action-controller:
44
git: https://github.com/spider-gazelle/action-controller.git
5-
version: 5.6.2
5+
version: 7.4.3
66

77
active-model:
88
git: https://github.com/spider-gazelle/active-model.git
9-
version: 4.2.3
9+
version: 4.3.2
1010

1111
backtracer:
1212
git: https://github.com/sija/backtracer.cr.git
1313
version: 1.2.2
1414

1515
db:
1616
git: https://github.com/crystal-lang/crystal-db.git
17-
version: 0.11.0
17+
version: 0.13.1
1818

1919
eventbus:
2020
git: https://github.com/spider-gazelle/eventbus.git
21-
version: 0.9.9+git.commit.086b2ba92475b88e8481b0387eb56c735cbfd7bd
21+
version: 1.0.0+git.commit.af63536d718348885a553dc4aa6debccc2946289
2222

2323
exception_page:
2424
git: https://github.com/crystal-loot/exception_page.git
25-
version: 0.3.0
26-
27-
future:
28-
git: https://github.com/crystal-community/future.cr.git
29-
version: 1.0.0
25+
version: 0.5.0
3026

3127
habitat:
3228
git: https://github.com/luckyframework/habitat.git
33-
version: 0.4.7
29+
version: 0.4.9
3430

3531
hot_topic:
3632
git: https://github.com/jgaskins/hot_topic.git
37-
version: 0.1.0+git.commit.c4577d949221d535f29162343bf503b578308954
33+
version: 0.1.0+git.commit.3c901e77b6e000930398738260a2944b6f5785dc
3834

3935
http-params-serializable:
4036
git: https://github.com/place-labs/http-params-serializable.git
4137
version: 0.5.0
4238

4339
json-schema:
4440
git: https://github.com/spider-gazelle/json-schema.git
45-
version: 1.3.0
41+
version: 1.3.1
4642

4743
kilt:
4844
git: https://github.com/jeromegn/kilt.git
4945
version: 0.6.1
5046

5147
lucky_router:
5248
git: https://github.com/luckyframework/lucky_router.git
53-
version: 0.5.2
49+
version: 0.6.0
5450

5551
pg:
5652
git: https://github.com/will/crystal-pg.git
57-
version: 0.26.0
53+
version: 0.28.0
5854

5955
pg-orm:
6056
git: https://github.com/spider-gazelle/pg-orm.git
61-
version: 1.0.0+git.commit.2bbafec9579f175880281279d33168360176540c
57+
version: 1.1.2+git.commit.9b340ee269cd4a10ed6c5b51235cbaf45fc380e1
6258

6359
pool:
6460
git: https://github.com/ysbaddaden/pool.git
65-
version: 0.3.0
61+
version: 0.2.4
6662

6763
redis:
6864
git: https://github.com/stefanwille/crystal-redis.git
69-
version: 2.8.3
65+
version: 2.9.1
7066

frameworks/Crystal/spider-gazelle/spider-gazelle.dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
FROM 84codes/crystal:1.7.2-alpine
2-
RUN apk add --update --no-cache bash gmp-dev
1+
FROM crystallang/crystal:1.14.0
32

43
WORKDIR /usr/src/app
54

@@ -10,7 +9,7 @@ COPY run.sh run.sh
109
# Build App
1110
RUN shards build --release --no-debug
1211

13-
ENV DATABASE_URL postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world?initial_pool_size=56&max_idle_pool_size=56
12+
ENV DATABASE_URL postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world?initial_pool_size=5&max_idle_pool_size=5
1413

1514
ENV SG_ENV production
1615

0 commit comments

Comments
 (0)