MERC. User Guide. For Magento 2.X. Version P a g e

Similar documents
CA Unified Infrastructure Management

Recovering Disk Storage Metrics from low level Trace events

davidklee.net gplus.to/kleegeek linked.com/a/davidaklee

Caches. Hiding Memory Access Times

Main Memory (Part I)

Lesson 2: Using the Performance Console

The Google File System

instruction is 6 bytes, might span 2 pages 2 pages to handle from 2 pages to handle to Two major allocation schemes

Monitoring WAAS Using WAAS Central Manager. Monitoring WAAS Network Health. Using the WAAS Dashboard CHAPTER

Memory and multiprogramming

The Right Read Optimization is Actually Write Optimization. Leif Walsh

Chapter 8: Virtual Memory. Operating System Concepts

Snapt Accelerator Manual

Monitoring System Health

Oracle Enterprise Manager. 1 Before You Install. System Monitoring Plug-in for Oracle Unified Directory User's Guide Release 1.0

Infrastructure Tuning

In multiprogramming systems, processes share a common store. Processes need space for:

VMware vrealize operations Management Pack FOR. PostgreSQL. User Guide

Virtual SQL Servers. Actual Performance. 2016

Using Transparent Compression to Improve SSD-based I/O Caches

Cache Performance and Memory Management: From Absolute Addresses to Demand Paging. Cache Performance

Memory. Objectives. Introduction. 6.2 Types of Memory

DASH COPY GUIDE. Published On: 11/19/2013 V10 Service Pack 4A Page 1 of 31

MarkLogic Server. Monitoring MarkLogic Guide. MarkLogic 9 May, Copyright 2017 MarkLogic Corporation. All rights reserved.

Chapter 9: Virtual-Memory

Optimal Algorithm. Replace page that will not be used for longest period of time Used for measuring how well your algorithm performs

VMWARE VREALIZE OPERATIONS MANAGEMENT PACK FOR. Dell EMC VMAX. User Guide

Rhapsody Interface Management and Administration

davidklee.net heraflux.com linkedin.com/in/davidaklee

CS161 Design and Architecture of Computer Systems. Cache $$$$$

Chapter 6 Objectives

VIRTUAL MEMORY READING: CHAPTER 9

The check bits are in bit numbers 8, 4, 2, and 1.

Virtual Memory Outline

First-In-First-Out (FIFO) Algorithm

IBM Tivoli Composite Application Manager for Microsoft Applications: Microsoft.NET Framework Agent Fix Pack 13.

Principles of Operating Systems

Leveraging Flash in HPC Systems

Chapter 6 Memory 11/3/2015. Chapter 6 Objectives. 6.2 Types of Memory. 6.1 Introduction

OPERATING SYSTEM. PREPARED BY : DHAVAL R. PATEL Page 1. Q.1 Explain Memory

12: Memory Management

10 MONITORING AND OPTIMIZING

V. Primary & Secondary Memory!

Chapter 1 Computer System Overview

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 27, SPRING 2013

Performance Monitoring

Operating System Concepts

Oracle WebCenter Portal Performance Tuning

Healthcare IT A Monitoring Primer

Extreme Storage Performance with exflash DIMM and AMPS

ApsaraDB for Redis. Product Introduction

Memory Technology. Caches 1. Static RAM (SRAM) Dynamic RAM (DRAM) Magnetic disk. Ideal memory. 0.5ns 2.5ns, $2000 $5000 per GB

Port Tapping Session 3 How to Survive the SAN Infrastructure Storm

CPE300: Digital System Architecture and Design

The Total Network Volume chart shows the total traffic volume for the group of elements in the report.

Portland State University ECE 587/687. Caches and Memory-Level Parallelism

Workload Control Center Performance Tuning

UNIT III MEMORY MANAGEMENT

Module Outline. CPU Memory interaction Organization of memory modules Cache memory Mapping and replacement policies.

CS370 Operating Systems

Computer Science 432/563 Operating Systems The College of Saint Rose Spring Topic Notes: Memory Hierarchy

Topics. File Buffer Cache for Performance. What to Cache? COS 318: Operating Systems. File Performance and Reliability

Chapter 9: Virtual Memory

SamKnows test methodology

MarkLogic Server. Monitoring MarkLogic Guide. MarkLogic 8 February, Copyright 2015 MarkLogic Corporation. All rights reserved.

CSE 120. Translation Lookaside Buffer (TLB) Implemented in Hardware. July 18, Day 5 Memory. Instructor: Neil Rhodes. Software TLB Management

Chapter 5. Memory Technology

Tableau Server Platform Monitoring

How IBM Can Identify z/os Networking Issues without tracing

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 27, FALL 2012

All Paging Schemes Depend on Locality. VM Page Replacement. Paging. Demand Paging

Putting together the platform: Riak, Redis, Solr and Spark. Bryan Hunt

Virtual Memory COMPSCI 386

Chapter 8: Memory- Management Strategies. Operating System Concepts 9 th Edition

FLAT DATACENTER STORAGE CHANDNI MODI (FN8692)

CGAR: Strong Consistency without Synchronous Replication. Seo Jin Park Advised by: John Ousterhout

CSF Cache Introduction. [Adapted from Computer Organization and Design, Patterson & Hennessy, 2005]

Chapter 4: Memory Management. Part 1: Mechanisms for Managing Memory

Increasing Performance of Existing Oracle RAC up to 10X

Intrusion Prevention Performance Tuning

OPERATING SYSTEM. Chapter 9: Virtual Memory

PowerVault MD3 SSD Cache Overview

vrealize Operations Management Pack for vsan 1.0 Guide

vsan Health Check Improvements First Published On: Last Updated On:

IBM InfoSphere Streams v4.0 Performance Best Practices

Installing and configuring Apache Kafka

Computer-System Organization (cont.)

ECE 7650 Scalable and Secure Internet Services and Architecture ---- A Systems Perspective. Part I: Operating system overview: Memory Management

Donn Morrison Department of Computer Science. TDT4255 Memory hierarchies

Page Replacement Algorithms

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

Jyotheswar Kuricheti

Improving Cache Performance and Memory Management: From Absolute Addresses to Demand Paging. Highly-Associative Caches

Memory Management. Reading: Silberschatz chapter 9 Reading: Stallings. chapter 7 EEL 358

EEC 170 Computer Architecture Fall Cache Introduction Review. Review: The Memory Hierarchy. The Memory Hierarchy: Why Does it Work?

Reducing Hit Times. Critical Influence on cycle-time or CPI. small is always faster and can be put on chip

Cache Memory COE 403. Computer Architecture Prof. Muhamed Mudawar. Computer Engineering Department King Fahd University of Petroleum and Minerals

Key metrics for effective storage performance and capacity reporting

CSE 2021: Computer Organization

vrealize Operations Management Pack for NSX for Multi-Hypervisor

Transcription:

MERC User Guide For Magento 2.X Version 1.0.0 http://litmus7.com/ 1 P a g e

Table of Contents Table of Contents... 2 1. Introduction... 3 2. Requirements... 4 3. Installation... 4 4. Configuration... 4 5. Redis Keys... 5 6. Flush all Keys... 6 7. Search Keys... 6 8. Delete Keys... 7 9. Performance Metrics... 7 10. Memory Metrics... 8 11. Base Activity Metrics... 9 12. Persistence Metrics... 10 13. Error Metrics... 11 14. Product Specific Redis Key Delete... 11 2 P a g e

1. Introduction: MERC, developed by Litmus7, enables customers to view and manage the Redis keys directly through the magento admin. With the help of this extension, customer can monitor the important Redis metrics thus making sure the Redis cache management is working effectively. MERC provides an option for users to configure and connect Redis with magento. This extension collects all the required information from the user through a configuration form and this data is used to configure and connect Redis with Magento. 2. Requirements: Redis Server version 3.0 or higher. Magento Community Edition version 2.0.2 or higher. 3 P a g e

3. Installation: a) Install Redis (3.0 + required). b) Install Magento (Version 2.0.2 + required). c) Download and install the MERC Extension. d) Run the magento setup upgrade command. e) Clear the cache and generation folder and run the static content deployment. f) Go to the magento admin area and provide the data for Redis configuration. (MERC => Configuration). Note: Please enable the write permission for the file app/etc/env.php in your magento project folder in order to make the configuration work properly. 4. Configuration: a) Server: IP Address of the Redis Server. b) Port: Redis connecting port. 4 P a g e

c) Persistent: Specify a unique string like cache-db0 to enable persistent connection. d) DB: Database number. e) Force Standalone: 0 for phpredis, 1 for standalone PHP. f) Connect Retries: Reduces errors due to random connection failures. g) Read Timeout: This means that, the server will not close the connection if the client is in an idle state. h) Automatic cleaning factor: 0: Disabled by default. i) Compress Data: 0-9 for compression level, recommended 0 or 1. j) Compress Tags: 0-9 for compression level, recommended 0 or 1. k) Compress Threshold: Strings below this size will not be compressed. l) Compression Library: Supports gzip, lzf and snappy. 5. Redis Keys: All the Redis keys can be viewed from the magento backend with pagination, through this extension. 5 P a g e

6. Flush All Keys: Using this extension, the customer can flush all Redis keys with a single button click. This feature flushes all Redis keys from the Redis server. 7. Search Keys: This feature enables the customer to search for a particular key and evict it from the Redis server. When the customer enters a key and hit the Apply Filter button, the corresponding key is displayed. The customer can select the displayed key and go for the delete option from the Actions menu. 8. Delete Keys: 6 P a g e

The customer can select and delete any number of keys from the Redis server through this extension. Monitoring Redis can help catch problems in two areas: resource issues with Redis itself, and problems arising elsewhere in your supporting infrastructure. Using the MERC extension, customer can monitor the main important Redis metrics directly from the magento admin. The main important Redis metrics are the following. 9. Performance Metrics: Along with low error rates, good performance is one of the best top-level indicators of system health. Poor performance is most commonly caused by memory issues. Hit Rate: When using Redis as a cache, monitoring the cache hit rate can tell you if your cache is being used effectively or not. A low hit rate means that clients are looking for keys that no longer exist. Low hit rates could cause increases in the latency of your applications, because they have to fetch data from a slower, alternative resource. Metric to watch: instantaneous_ops_per_sec: Tracking the throughput of commands processed is critical for diagnosing causes of high latency in your Redis instance. High latency can be caused by a number of issues, from a backlogged command queue, to slow commands, to network link overutilization. You could investigate by measuring the number of commands processed per second if it remains nearly constant, the cause is not a computationally intensive 7 P a g e

command. If one or more slow commands are causing the latency issues you would see your number of commands per second drop or stall completely. A drop in the number of commands processed per second as compared to historical norms could be a sign of either low command volume or slow commands blocking the system. Low command volume could be normal, or it could be indicative of problems upstream. 10. Memory Metrics: Memory usage is a critical component of Redis performance. Metric to watch: used_memory: If used_memory exceeds the total available system memory, the operating system will begin swapping old/unused sections of memory. Every swapped section is written to disk, severely impacting performance. Writing or reading from disk is up to 5 orders of magnitude (100,000x!) slower than writing or reading from memory (0.1 µs for memory vs. 10 ms for disk). Metric to alert on: mem_fragmentation_ratio: The mem_fragmentation_ratio metric gives the ratio of memory used as seen by the operating system to memory allocated by Redis. Tracking fragmentation ratio is important for understanding your Redis instance s performance. A fragmentation ratio greater than 1 indicates fragmentation is occurring. A ratio in excess of 1.5 indicates excessive fragmentation, with your Redis instance consuming 150% of the physical memory it requested. A fragmentation ratio below 1 tells you that Redis needs more memory than is available on your system, which leads to swapping. Swapping to disk will cause significant increases in latency. Ideally, the operating system would allocate a contiguous segment in physical memory, with a fragmentation ratio equal to 1 or slightly greater. If your server is suffering from a fragmentation ratio above 1.5, restarting your Redis instance will allow the operating system to recover memory previously unusable due 8 P a g e

to fragmentation. If your Redis server has a fragmentation ratio below 1, you may want to quickly increase available memory or reduce memory usage. Metric to alert on: evicted_keys: Tracking key eviction is important because Redis processes each operation sequentially, meaning that evicting a large number of keys can lead to lower hit rates and thus longer latency times. Metric to watch: blocked_clients: An increase in the number of blocked clients waiting on data could be a sign of trouble. Latency or other issues could be preventing the source list from being filled. Although a blocked client in itself is not cause for alarm, if you are seeing a consistently nonzero value for this metric you should investigate. 11. Base Activity Metrics: Metric to alert on: connected_clients: If the number of connected clients leaves the normal range, this could indicate a problem. If it is too low, upstream connections may have been lost, and if it is too high, the large number of concurrent client connections could overwhelm your server s ability to handle requests. Monitoring client connections helps you ensure you have enough free resources available for new clients or an administrative session. Metric to alert on: connected_slaves: If the number of connected slaves change unexpectedly, it could indicate a down host or problem with the slave instance. 9 P a g e

12. Persistence Metrics: Metrics to watch: rdb_last_save_time and rdb_changes_since_last_save: Monitoring rdb_changes_since_last_save gives you more insight into your data volatility. Long-time intervals between writes are not a problem if your data set has not changed much in that interval. Tracking both metrics gives you a good idea of how much data you would lose should failure occur at a given point in time. 13. Error Metrics: Metric to alert on: rejected_connections: 10 P a g e

Redis is capable of handling many active connections, with a default of 10,000 client connections available. Any new connection attempts will be disconnected if your Redis instance is currently at its maximum number of connections. Metric to alert on: keyspace_misses: Looking up a non-existent key causes the keyspace_misses counter to be incremented. A consistently nonzero value for this metric means that clients are attempting to find keys in your database which do not exist. If you are not using Redis as a cache, keyspace_misses should be at or near zero. 14. Product Specific Redis Key Delete: One advanced feature of this extension is that, users can delete the Redis Keys based on particular product. This functionality can be access from the admin product details page using the Delete Redis Key button. This button appears only when there are cached data for the particular product. 11 P a g e