-
Notifications
You must be signed in to change notification settings - Fork 0
[$1200] Creating comments and discussions seems to be taking more time than it used to be #381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Challenge https://www.topcoder.com/challenges/2d61ee7a-b52f-4fb2-94af-c917614755d4 has been created for this ticket. |
Challenge https://www.topcoder.com/challenges/2d61ee7a-b52f-4fb2-94af-c917614755d4 has been assigned to obog. |
@atelomycterus - This is becoming more of a concern. Is there anything I can do in prod to help you debug this? |
@jmgasper I'm going to work on it after #376, #377. The screens show that there are delays on both envs. I'll add php-xdebug and enable a profiler in a dockerfile. It helps to investigate performance issues.
You may need to copy dump files. I'll analyze them. Also, the flood settings can increase the posting time. The flood control settings - https://vanilla.topcoder-dev.com/vanilla/settings/floodcontrol. |
@atelomycterus - Thanks. I've bumped up the flood control settings in prod so I'll keep an eye on it to see if that makes a difference. |
@jmgasper I am working on it. Adding comment and updating comment meta-dataAdding a comment takes about 400-600 ms. The issue with the second ajax request which inserts/updates meta-data about the comment (user activity, count of comments, who added/edited the comment,... ) + sends notifications. The second ajax requests works too long. 36 Notifications were not sent from 12 Feb in DEV. This request may take a long time due to PhpmailerException. TODO: Check server logs in DEV + Need to profile the code.
Reproduced in PROD/DEV. It returns 502 Bad Gateway in PROD. It returns 504 in DEV. Adding discussionI clicked on 'Post Discussion' in PRO/DEV but there were 2 requests (saving draft and posting discussion). Not reproduced it locally. |
@jmgasper We've optimized viewing pages, but this issue exists with posting a discussion/comment. I ran locally with 50+ category, no issues, then I ran with the old Vanilla DB (500+ categories). It works slower. Both issues are reproduced periodically. Could you provide DB from DEV (there are 1700+ categories, 6400 comments, 2400 discussion)? Adding discussion and the second request
This issue is reproduced periodically (500+ categories) with enabled profiler. If a discussion is added at the nested category (level 5). Posting a discussion/commentI ran it with the profiler locally with old Vanilla DB (~500+categories) . It generates 900+MB files per a request for discussion and 400+MB for comment.
-- Update Category Cache by CategoryID: |
@jmgasper ☝️ This also leads to a huge amount of requests to Memcached. |
@jmgasper Only for DEV env. |
@jmgasper I ran adding comments using a selenium script. I commented our custom code and ran without checking Group permissions. I wanted to check the execution time of the original code. When a comment is added:
See the video https://youtu.be/JndU9Y2ufnY. Adding a comment, with delay 3 secs, after several seconds usage CPU - 100% . |
@atelomycterus - Ok, thanks for that. So, if I understand this right, this is a problem with Vanilla? Have they released any new versions recently that we could test to see if the problem is resolved? |
yes. Vanilla Team has tried to improve caching functionality vanilla/vanilla#8062. I've seen some issues with memory exhaustion (vanilla/vanilla#7843 and others). Some issues have been fixed, other issues are still open/hold. The same issue https://open.vanillaforums.com/discussion/38113/vanilla-forum-take-high-cpu-usage, but no replies.
New release - https://open.vanillaforums.com/discussion/38573/vanilla-2021-003-rc2-is-now-available but it is not intended for use in production environments.
|
Ok, thanks. |
@jmgasper I am going to work on it today.
Keep you updated. |
@jmgasper Please apply PRs: Thanks! Performance before and after changesI deployed Vanilla without PRs to compare performance before and after changes. DiscussionsCategories: 1879. Testing with a selenium script: CommentsTesting with a selenium script, delay 3 secs. Before: Post-proccesing after adding a comment: |
@jmgasper I see more performance bottlenecks in my local env. I think the same issues in DEV/PROD. Let's deploy Vanilla and monitor performance in DEV. |
@atelomycterus - This looks good, thanks. Deployed in dev. I need to deploy to prod today, so if we need to back out anything for Tideways, just let me know. |
Payment task has been updated: https://www.topcoder.com/challenges/2d61ee7a-b52f-4fb2-94af-c917614755d4 |
Verified in Dev, discussions/comments are created within 3-5 seconds now. |
@jmgasper Please apply PRs: Important: Flush cache after deploying to avoid weird behavior (#422 (comment)).
|
@sdgun / @atelomycterus - Deployed in dev. I'm waiting on an update for the API env param |
@sdgun After updating env param I'll check that Tideways is displaying the data. Let's test this issue when Tideways is configured. |
@atelomycterus the Param should be set now. I'm redeploying in dev which usually takes less than 10 minutes |
@jmgasper Do you have permissions to create a service in Tideways (#381 (comment))? |
Verified in production, didn't observe a slowness. |
Uh oh!
There was an error while loading. Please reload this page.
Steps
Create a comment/discussion in challenge forum or roundtables and monitor the time it takes
Noticed these actions are taking more time as shown in the below screen shots:
Discussion Prod:
Discussion Dev:
Comment Prod:
Comment Dev:
The text was updated successfully, but these errors were encountered: