I’ve recently migrated a large and old forum across to discourse (900,000 posts over 10 years).
Everything has migrated properly and for the most part everything is working as expected.
However in the last few days people started to get promoted to TL2 and found that they couldn’t log in.
When I navigated to the TL2 group and selected to “View Activity” the forum would process for 30 seconds then thrown an “unknown error” or “502 error” on the groups posts.json
The unicorn logs showed that the process was being killed because it was running for more than 30 seconds.
Individual users within the TL2 group could have their “Activity” viewed, but I found a couple of users who had over 30,000 posts each and their activity page threw the same 502 error on posts.json
It seams that this issues is either:
A. There’s something special about TL2 that causes this error to be thrown
B. There literally are too many posts to process within the 30 second limit
C. Somewhere one of this users posts is causing an issue (although it seems to be limited to TL2 group only)
What are some suggestions on how I should resolve this?
Should I try to increase the unicorn worker’s timeout? If so, how?
Should I prune posts? That would suck
I appreciate any help that could be given