-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Front-end Search and use of Varnish with 2.0.2 #3926
Comments
Hello @robfico can you provide some more details on your environment as we haven't seen this issue before. Are you using DNS names ( perhaps there's an issue with them resolving? )? What VCL file are you using? What are you using for your web server - Nginx or Apache, what port is the web server running on? Thanks, |
Sure. Sorry for the lack of details before. Just wanted to make sure it was not already known or addressed, in case my search missed something... The M2EE 2.0.2 install uses an IP number, so no DNS issues. Environment is: I switched the install to FPC through Apache/php-fpm, ran a 60 second siege against search, and got these results: I then switched it back to Varnish, flushed all caches, ran same siege and received these results: Once switched to using Varnish, the search is considerably slower, and will only run one hit at a time. All other URLs / features run fine with Varnish, lots of php-fpm children for multiple hits, etc... |
Created internal ticket - MAGETWO-52607 for tracking as a performance bug. |
I am having trouble reproducing these results. The number of transactions per second seem low. Can you confirm that you are running in production mode and have done all the steps to switch -- ie remove any conflicting MAGE_MODE server-variables in .htaccess or apache config and then
Also how was your siege test structured did you have the same query or a url file with a lot of unique queries, and how large, extensive is your catalog in terms of number of items in your store? |
Yes, it was in production mode, no conflicts, etc... Same store using FPC was fast for search and adding to cart, with Varnish it was much slower for search and add to cart. siege tests were same URL. The catalog was around 5,000 products. |
Thank you for pointing out this issue -- still working on a general fix but this is a solution for your version of varnish. In sub vcl_backend_response { At the bottom remove the return (deliver); and then add the following:
|
… run serially under load #3926 - update varhish4.vcl to allow default hit-for-pass behavior
Both this pull request and the sample code above cause all page's to stop being served by varnish. |
@pynej can you elaborate? Do you mean Varnish doesn't work on 2.1RC1? |
I didn't try the RC. I simply tried adding the indicated code sample from bwaters into my varnish.vcl and checked the hit/miss of my content pages. With the code addition all the pages in the site constantly miss. Similarly remove the line form the listed change 5544d73 causes all pages to miss. I don't have the log on hand. |
@pynej Thanks for the heads up. This is the new code I am currently testing for 2.1 remove return (deliver); at bottom of vcl_backend_response and replace with
|
@bwaters This is working as expected. Results: (monitor with Original config.
After change
|
Hello @robfico, this issue has been fixed in the 2.1.0 Release, that's why I'm closing it. If you any questions or additional information regarding the issue feel free to reopen it or create a new one. |
…ion-pr [Pangolin] Community MTF to MFTF tests migration - closes magento-commerce/magento-functional-tests-migration#648
When running 2.0.2 Enterprise with the standard built-in FPC enabled, front-end searches are fine, run quickly, run in parallel when tested concurrently, etc...
When switching to Varnish, the search becomes much slower, and even under parallel loads, only runs one search at a time, causing other search attempts to back up and wait for the ones in front of it to finish (siege tests back up and timeout). We verified Varnish set up is correct, as home page, catalog pages, product pages, etc... all get cached by Varnish, have proper results, etc... as expected with Varnish.
We also noticed that when adding a product to the cart, with Varnish on the TTFB is twice as slow as adding to the cart using the built-in FPC. Just an observation. Using the view cart link in both FPC and Varnish has the same time for TTFB and transactions/second, it's just adding a product to the cart that is twice as slow with Varnish enabled.
Not sure what would be causing these results, but they are easily reproduced when running one install via FPC, and the same install configured for Varnish.
The text was updated successfully, but these errors were encountered: