how change post quick reply component become editor?
ed5bfe2d-fb9a-41f3-8b77-b33ae0c7d0c8-image.png
2c12236d-3bbf-4d3c-8f26-4ffc3490277d-image.png
@baris what tool do you advise to analyze a network usage?
I do not have my custom code only plugins
@baris The problem with 504 timeouts appears only when I try to login or refresh with logged in user. Maybe some cache for sessions should be cleared or something related to user data?
Have you tried disabling various plugins?
@pitaj The problem appeared after I installed nodebb-write-api plugin and post several tens of thousands topics, the more topics I posted the longer time for refreshing the page with logged in user
So I do not think other plugins rather then nodebb-write-api impact this issue
@evg-r okay well try disabling various plugins anyways. You don't need to keep write API active after you're finished using it to create the posts.
If disabling plugins doesn't work, then I think you should try upgrading to the latest version of NodeBB, 1.18.6
Does this happen if you create a new user and login with that? Wonder if it has something to do with a user having tens of thousands of topics made in the same day.
@baris I've just tried with newly created user and it's the same situation - timeouts
I've disabled all the plugins - CPU is becoming lower but I still have timeouts when log in and refresh (almost all the time > 1min, sometimes 58secs)
Today the page load time is about 5-10 secs for logged in user (previously it was more then 1min), so maybe some sessions are destroyed or something?
I kept write-api-plugin disabled and did not use it for 2 days
I'd bet it just took some time for the indices to rebuild.
@pitaj I've just checked the indexes in db, and find out that nodebb db size is 0. So I forgot that I store all the data for nodebb forum in the different one db, and that db already had the indexes. So no changes were made to the db with nodebb forum
The reason of long load page time is still mystery but its related somehow to write-api plugin.
I need to use this plugin to post more topics but I need to fix something to avoid such bad situation with long load page time
@evg-r I doubt it's anything to do with the write API plugin. If you want to avoid it though, you can use the built in write API in newer versions of NodeBB.
I suggest:
@pitaj But when I log out the speed is quick as usual. Could it be related to the indexes with such a behavior?
@evg-r Not really, no... but you never know.
What happens if you disable the write API temporarily and rebuild/restart NodeBB? Do the topics load quickly then?
If not, then you can safely rule out the write API plugin.
@julian When disabling the plugin and rebuild the Speed is the same. But day by day of just waiting it becomes quicker since the last creation day of topics
@evg-r Right, so it is not related to the Write API plugin then. The evidence still seems to point to a plugin causing issues with loading NodeBB content.
@baris creation of index for tid can help in this case? can it harm something?
what additional indexes would you suggest to add?