Hello, I have a heavily social online mobile game and i’m using Nakama just for chat. I implemented the game servers within engine itself. Since my user base grows, i have more than 500 concurrent players in my game servers that can move and interact with my game servers with no problem, but some of them can’t use chat and Nakama console always shows less than 450 players. The presence size after connection is also under 450. I’m using Nakama 3.18.0 with postgress using docker-compose on a Ubuntu server. I tried increasing these config values:
logger:
stdout: true
level: “info”
file: “/nakama/data/logfile.log”
console:
port: 7351
username: “XXXXXXXXXXXXXXXXX”
password: "XXXXXXXXXXXXXXXXX*
session:
token_expiry_sec: 157000000
runtime:
event_queue_size: 300000
socket:
max_message_size_bytes: 200000
outgoing_queue_size: 500
read_buffer_size_bytes: 650000
write_buffer_size_bytes: 650000
Then i though it can be the number of files open in kernel. So i increased its value. This is the result of ulimit -a on my server:
core file size (blocks, -c) 10000000
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31691
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 65000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 10000020
virtual memory (kbytes, -v) unlimited
file locks (-x) 10000000
There is no meaningful error on my nakama container that can lead me to solve this issue. Just some random errors like “write: broken pipe”. Please help me to find the issue.
Thanks