NodeBB slow after website have over 60k topic
-
Dear friend,
i'm testing NodeBB on server: 64GB RAM with 6C/12T dedicate server, 512GB NVME.
I see problem when i have over 60k topic!
Testing case:
1. Site load very fast if i don't login. 2. Register slow. 3. Login with any user, loading page very slow.
When i check DB, i see NodeBB use one colum for everything which is problem? any sugest for my case?
I try with method:1 server for mongoDB 1 server for redis session.
Config.json
{ "url": "https://nodebbv2.servicesio.com", "secret": "f3e455ac-0a49-4d8d-b70f-50f99c6998aa", "database": "redis", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "nodebb", "password": "nodebb", "database": "nodebb", "uri": "" }, "port": ["4567", "4568" , "4569"], "bcrypt_rounds": "21", "bind_address": "0.0.0.0", "isCluster": "false", "session_store": { "name": "redis", "host":"127.0.0.1", "port":"6379", "password": "", "database": "1" } }
Problem is same and i don't see any error log ( test with:. ./nodebb start or node app.js)
-
@baris said in NodeBB slow after website have over 60k topic:
return await db.getSortedSetRevRangeByScoreWithScores(keys, 0, 200, '+inf', params.cutoff);
yes! it work perfect, so fast now
-
I am going to do do some testing but this was likely happening because you had 30k topics imported and they were all considered unread(since they are all in the unread cutoff date limit of 2 days). And that line of code was loading all those topic ids.
-
hi @baris
have you think this case effect to register/login for new user?
i try to register user, it's very slow for loading after i submit ( i use Cloudflare proxy).
I get timeout and see new user on /admin/manage/users but i can't login with this user.
-
wow, i got it. problem from this option in config.json
"bcrypt_rounds": "21",