Magento Cloud Docker – OOM issues during setup:upgrade (redis)

When running docker-compose run --rm deploy cloud-deploy It makes it through almost entirely, but then during the last stages of setup:upgrade, specifically the “Processing configurations data from configuration file…” step, I see a fatal error:

mmap() failed: [12] Cannot allocate memoryFatal error: Out of memory (allocated 235208704) (tried to allocate 6451432 bytes) in /app/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redis.php on line 1254 

if I run docker-compose run --rm deploy php -r "echo ini_get('memory_limit').PHP_EOL;" I see:

Creating gh2-cloud_deploy_run ... done 4G 

If I watch the docker image stats, it’s erroring out right around 256mb of memory. I’ve already allocated about 10gb of memory to docker via resource settings in docker desktop, and set the memory_limit in docker-compose.yml to -1.

Does anyone know where this memory limit of 256mb is coming into play? I would be most appreciative for a lead.

submitted by /u/blkbeard
[link] [comments]

Magento 2 Theme Suggestions For Baseball / Softball Retailer

We are a medium-sized team sports retailer (mostly baseball / softball) and we are contemplating a theme change for our Magento 2 sites. We have 5 of them.

  • MGS Tex is our current theme
  • Elasticsearch / Elasticsuite is configured and in use.
  • The catalog is large. Think 150K items+.
  • Many items are configurable (think shoes with size+color)
  • We use Magento 2 EE 2.3.5 on prem.

The hope is to improve out page load times and have a more modern look and feel.

We are considering Has anyone actually implemented it? Can you share your site with us in a DM? Does anyone have any other suggestions for a good theme that meets our needs?

Edit: a word

submitted by /u/dysco_dave
[link] [comments]

Klevu Theme vs Magento Theme

I have 2 questions about Klevu.

  1. Can someone provide a list of pros and cons in using the Klevu theme versus Magento theme?

  2. Would anyone be willing to share a URL to the website so I can understand and view how you have set up your UX?

We are going through a Klevu implementation, and I’m not so happy about some of the things I’m seeing. I’d like to view a more established company and see what they’ve done, and even what customizations are possible to make it perform better.

submitted by /u/Othelo2
[link] [comments]

Magento resources

I am new to Magento so I apologise if what I’m about to ask doesn’t make any sense.

I was wondering how resources intensive Magento 2 websites would be with the following parameters:

E-commerces sites with elastic search:

5000k monthly users 10,000k monthly users 100,000k monthly users

How resource intensive would these 3 sites be with elastic search and potentially varnish?

submitted by /u/DrBiscuitss
[link] [comments]

Best practice extending less styles?

I’m just wondering, what’s the best practice when working with less files.

For example: I’m creating a child theme from blank. Now I need to change icon font size of .minicart-wrapper.

 .minicart-wrapper { .lib-dropdown( @_icon-font-size: 22px ); } 

I could either do it in Magento_Checkout/web/css/source/module/_minicart_extend.less (and register this file in (Magento_Checkout/web/css/source/module/_extend.less)


I could do it in Magento_Theme/web/css/source/_extend.less

I guess the first apporach is more structured but you have to look through more files.

What’s the best practice?

submitted by /u/zlep
[link] [comments]

Magento 2.4 requirejs dependency load order question

Magento v2.4.0

I have two js files. Let’s call them fileA and fileB. I need fileA to load before fileB in order to trigger a call.


define([ 'jquery', 'underscore', 'ko', 'uiComponent' ], function ($, _, ko, Component) { return Component.extend({ initialize: function() { $(document).on('customEvent', function () { // do stuff } }, // knockout stuff }); }); 


define([ 'jquery', 'Magento_Theme/js/fileA' ], function ($) { $.widget('mage.test', $.mage.test, { _init: function () { $(document).trigger('customEvent'); } }); }); 

fileA is a knockout file with html template. I need it to load before fileB loads because fileB will fire the event trigger which will prompt fileA to fetch the data and upate the array var. How do you tell fileB that it needs fileA to be loaded before it runs? I’ve tried a domReady on fileB, a require([‘fileA’]) before the init call on fileB, and a shim but none of them worked. Any input is appreciated. Thank you!

submitted by /u/thawkins
[link] [comments]

In Stock Notifications Magento 2


Am using the community copy of Magento 2 platform. Was interested in setting up In stock notifications for customers who enter their e-mail on a product page. I see there is a way to allow this with having all of the products which are out of stock visible in the categories but is there a way to have the OOS remain invisible from the site unless they enter directly from a URL (such as they found the product in google and clicked on the Search engine result)?

Many thanks

submitted by /u/Emerald_Isle2222
[link] [comments]

We have developed Eye lens prescription Magento 2 extension

Here, we are launch with some best features,

Take a look,


  • A smart solution for online lens products selling eCommerce store
  • Auto populate prescription options (e.g. Diameter, Power) for lens products
  • User can enter prescription manually or upload prescription file
  • Allow users to save multiple prescriptions for repeat purchase
  • Tooltip display for prescription specifications like base curve, power, etc.
  • Preview ordered prescription details on the cart page, checkout & order view pages, etc.

submitted by /u/AcanthaceaeChance476
[link] [comments]

When will knockout.js be deprecated?

I have spent the last year or so developing a magento 2 shop based on porto theme and the normal jquery / knockout.js frontend stack and today i read knockout.js will be deprecated..

My shop is about 90% finished.. i guess i will go live with knockout.js or should i already switch to PWA react?

Would this mean my layered navigation extension and other things i need to rewrite?

When will it be deprecated? I believe there are still alot of shops not ready for PWA yet.

submitted by /u/30lightyearsaway
[link] [comments]