Skip to content

[Performance] Redis has more Network Traffic  #21334

Closed
@larsroettig

Description

@larsroettig

Preconditions (*)

  1. Install Magento 2.1.15 with bin/magento setup:perf:generate-fixtures ./setup/performance-toolkit/profiles/ee/medium.xml
  2. Install Magento 2.1.8 with bin/magento setup:perf:generate-fixtures ./setup/performance-toolkit/profiles/ee/medium.xml
  3. Setup redis for config and caching

Steps to reproduce (*)

  1. bin/Magento c:f
  2. Profile https://2.1.15.test/category-1.html
    --
  3. cd Magento 2.1.8 && bin/magento c:f
  4. Profile https://2.1.8.test/category-1.html

Expected result (*)

  1. Not more Network Traffic

Actual result (*)

  1. Currently you see 136% on Category more Network Traffic
    comparison_from_https___2_1_8_test_category-1_html_to_https___2_1_15_test_category-1_html_-_blackfire

Url: https://blackfire.io/profiles/compare/cfe9e28e-d5c1-466e-8467-344399c6939e/graph

Info:

Main Problem in 2.1.15 is the new Encryptor the it increases the network traffic +30% this is called up 5 dependent on site

Class: \Magento\Config\App\Config\Type\System

The Problem is worst if you have many configurations because the implementation of the Encryptor is exponentially

A Cart site call 5 times Redis give my all config data (edited)

If you have a Redis Cluster not on the same server this add network latency and if you have many request you can't handle this network traffic

Currently, i reproduce this issue in 2.1.x I add information about 2.3.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions