perf: ⚡ Assign specific CPU cores to bot and DB container.
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
TOKEN=
|
||||||
|
|
||||||
|
IS_DEBUG=false
|
||||||
|
|
||||||
|
SUGGESTIONS_CHANNEL_ID=
|
||||||
|
|
||||||
|
SERVER_INVITE=
|
||||||
|
|
||||||
|
# The CPU cores assigned to each container, e.g. "0,1" for the first two cores.
|
||||||
|
# CPUSET_BOT=
|
||||||
|
# CPUSET_DATABASE=
|
||||||
@@ -3,6 +3,7 @@ name: "payphone"
|
|||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
build: .
|
build: .
|
||||||
|
cpuset: ${CPUSET_BOT:-0,1}
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
@@ -14,6 +15,7 @@ services:
|
|||||||
|
|
||||||
database:
|
database:
|
||||||
image: postgres:16.3
|
image: postgres:16.3
|
||||||
|
cpuset: ${CPUSET_DATABASE:-2,3}
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_DB=payphone
|
- POSTGRES_DB=payphone
|
||||||
- POSTGRES_USER=payphone
|
- POSTGRES_USER=payphone
|
||||||
|
|||||||
Reference in New Issue
Block a user