Skip to content

Commit

Permalink
[crystal/spider-gazelle] Fix tests and update dependencies
Browse files Browse the repository at this point in the history
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
  • Loading branch information
p8 committed Jan 8, 2025
1 parent ddd0952 commit 8b7e556
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
30 changes: 13 additions & 17 deletions frameworks/Crystal/spider-gazelle/shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,65 @@ version: 2.0
shards:
action-controller:
git: https://github.com/spider-gazelle/action-controller.git
version: 5.6.2
version: 7.4.3

active-model:
git: https://github.com/spider-gazelle/active-model.git
version: 4.2.3
version: 4.3.2

backtracer:
git: https://github.com/sija/backtracer.cr.git
version: 1.2.2

db:
git: https://github.com/crystal-lang/crystal-db.git
version: 0.11.0
version: 0.13.1

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

exception_page:
git: https://github.com/crystal-loot/exception_page.git
version: 0.3.0

future:
git: https://github.com/crystal-community/future.cr.git
version: 1.0.0
version: 0.5.0

habitat:
git: https://github.com/luckyframework/habitat.git
version: 0.4.7
version: 0.4.9

hot_topic:
git: https://github.com/jgaskins/hot_topic.git
version: 0.1.0+git.commit.c4577d949221d535f29162343bf503b578308954
version: 0.1.0+git.commit.3c901e77b6e000930398738260a2944b6f5785dc

http-params-serializable:
git: https://github.com/place-labs/http-params-serializable.git
version: 0.5.0

json-schema:
git: https://github.com/spider-gazelle/json-schema.git
version: 1.3.0
version: 1.3.1

kilt:
git: https://github.com/jeromegn/kilt.git
version: 0.6.1

lucky_router:
git: https://github.com/luckyframework/lucky_router.git
version: 0.5.2
version: 0.6.0

pg:
git: https://github.com/will/crystal-pg.git
version: 0.26.0
version: 0.28.0

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

pool:
git: https://github.com/ysbaddaden/pool.git
version: 0.3.0
version: 0.2.4

redis:
git: https://github.com/stefanwille/crystal-redis.git
version: 2.8.3
version: 2.9.1

5 changes: 2 additions & 3 deletions frameworks/Crystal/spider-gazelle/spider-gazelle.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM 84codes/crystal:1.7.2-alpine
RUN apk add --update --no-cache bash gmp-dev
FROM crystallang/crystal:1.14.0

WORKDIR /usr/src/app

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

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

ENV SG_ENV production

Expand Down

0 comments on commit 8b7e556

Please sign in to comment.