Skip to content

Commit

Permalink
Enable jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
osyoyu committed Sep 8, 2024
1 parent 9464784 commit 2873f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN bundle install --path /gems --jobs 100 --deployment --without development:te
FROM public.ecr.aws/sorah/ruby:3.2

RUN apt-get update \
&& apt-get install -y libpq5 \
&& apt-get install -y libjemalloc2 libpq5 \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app
Expand Down
5 changes: 2 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@ console_command = '/rails/bin/rails console'
GITHUB_APP_ID = "990067"
GITHUB_CLIENT_ID = "Iv23liCJtVnA9gLDRmaL"
GITHUB_REPO = "tokyorubykaigi12/auth"
LD_PRELOAD = "/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"
MAILGUN_SMTP_LOGIN = "[email protected]"
MAILGUN_SMTP_PORT = "587"
MAILGUN_SMTP_SERVER = "smtp.mailgun.org"
MALLOC_CONF = "dirty_decay_ms:0,muzzy_decay_ms:0,narenas:2,background_thread:true,thp:never"
ORG_NAME = "Tokyo RubyKaigi 12 Team"
RAILS_ENV = "production"
RAILS_SERVE_STATIC_FILES = "1"
S3_FILES_BUCKET = "tokyorubykaigi12"
S3_FILES_PREFIX = "sponsor-app-production/"
S3_FILES_REGION = "ap-northeast-1"
S3_FILES_ROLE = "arn:aws:iam::985623304185:role/Trk12SponsorAppProduction"

# LD_PRELOAD = "/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"
# MALLOC_CONF = "dirty_decay_ms:0,muzzy_decay_ms:0,narenas:2,background_thread:true,thp:never"

0 comments on commit 2873f57

Please sign in to comment.