Implementation of mysql architecture cache in redis server environment

Build an instance based on memcache: web(php) host: 192.168.181.6 redis host: 192.168.181.5 mysql host: 192.168.181.4 First, close the firewall of the three hosts systemctl stop firewalld systemctl disable firewalld sed -i 's/enforcing/disabled/'/etc/selinux/config setenforce 0 Synchronization time yum -y install ntp ntpdate ntpdat ...

Posted by True`Logic on Sun, 28 Nov 2021 17:09:09 -0800

java mongodb orm implementation-ORM based on mongodb-driver

Introduction: MongoDB is a very promising database, and MongoDB officially locates itself as a generic database, which is somewhat like MySQL. Although its popularity is far from the level of MySQL, there is one possible inappropriate comparison. Like MySQL N years ago, MongoDB will become stronger and more popular over time. Due to the comple ...

Posted by shlomikalfa on Sun, 28 Nov 2021 16:00:56 -0800

Three cluster schemes of Redis

In the development and testing environment, we usually build a single instance of Redis to meet the development and testing requirements. However, in the production environment, if there are high requirements for availability and reliability, we need to introduce Redis cluster scheme. Although major cloud platforms now provide caching services ...

Posted by Ohio Guy on Sun, 28 Nov 2021 15:13:49 -0800

Redis Cluster deployment, online capacity expansion, capacity reduction, migration and cluster management practices

summary Redis sharding cluster is to cope with the data growth brought by business growth and realize online dynamic horizontal expansion and contraction. Each sharding master node in the cluster processes a subset of 16384 hash slots; In order to stabilize high availability deployment, enable one or more replica nodes for each partition node; ...

Posted by uday on Sat, 27 Nov 2021 23:11:38 -0800

RedisTemplate switches Jedis implementations and common Jedis API s

catalogue RedisTemplate switch Jedis implementation Switch the underlying Jedis API operation Redis RedisTemplate switch Jedis implementation 1. Spring Boot is Lettuce and Jedis The client library provides basic automatic configuration. By default, it is used Lettuce As a client, if you want to switch the Jedis client, there are two steps: ...

Posted by eldee on Sat, 27 Nov 2021 19:42:55 -0800

Function and principle of memory fragmentation optimization

The article is reprinted, convenient for sorting and induction, and the source address https://juejin.cn/post/6989526481709826055 Memory fragmentation rate formula mem_fragmentation_ratio = used_memory_rss/used_memory used_memory: the size of the memory space allocated by the Redis service's own allocator.used_memory_rss: the memory size ...

Posted by zipp on Thu, 25 Nov 2021 15:44:44 -0800

Redis thread model

Past and present life of Redis thread model https://mp.weixin.qq.com/s/MwG9GpnTVbma69PiOHHvgw Past and present life of Redis thread model original   Wang Shaodong   vivo Internet technology   2021-11-24 17 contents included in the topic # database Author: vivo Internet server team - Wang Shaodong   1, Overview   As we all know, ...

Posted by robtbs on Wed, 24 Nov 2021 19:48:44 -0800

Love and marriage system source code, system optimization is the basis to ensure performance

The essence of optimization The purpose of source code optimization of marriage and love system is to ensure the robustness of the program. Sometimes it is not necessary to spend too much time when the program can run normally. Cyclic optimization Take an example, please pay attention to this code, the source code of marriage and marriage sy ...

Posted by johnh2009 on Wed, 24 Nov 2021 09:47:40 -0800

Second shallow encapsulation practice in microservice architecture

1, Background introduction There are many split services in the distributed system. In the process of continuous iterative upgrading, the following common thorny situations will occur: For the version upgrade of a technical component, depending on the package upgrade leads to the expiration of some syntax or API, or the component fixes urgent ...

Posted by everlifefree on Mon, 22 Nov 2021 00:07:12 -0800

Complete and detailed Redis learning notes

Learning reference Videos: [crazy God says Java] Redis Redis 1, Overview of redis redis is a non relational database. 1. Introduction to non relational database A non relational database, that is, NoSQL (Not Only SQL). Relational database: column + row. The data structure under the same table is the same. Non relational database: data ...

Posted by tofi84 on Sat, 20 Nov 2021 18:29:15 -0800