Although many open-source tools use plug-ins or other methods to monitor the internal performance provided by these open-source components (the so-called internal performance is the data obtained by the STAT command class provided by these open-source components ), however, both deployment and expansion are troublesome. In fact, it takes 1-2 days to implement such a tool, and it is also very convenient to scale.
For example, MongoDB:
Another example is
Label:MongoDB is a document-based database where all data is read and written from disk. MongoDB is a good long query for modeless JSON data.And Redis is a memory-based key-value database, which is implemented by C language, similar to Nginx/nodejs working principle, the same way as a single-threaded asynchronous operation, read and write memory and asynchronous synchronization to disk, read and write speed than MongoDB has a huge increase. Therefore,
Much of the online introduction to the memcached and Redis differences is that Redis is more of a topic than the data types supported by memcached, and the performance ratio is very small, and I'm doing a performance test for both.The test content is as follows:Both add 50,000 key-value, and value is a string, the test
For example, we have recently conducted a design stress test. You can answer the question about how to disable a service, or describe how a service fails. For example, we have recently conducted a design stress test.
You can answer the question about how to disable a service, or describe how a service fails.
Reply content:
For example, we have recently conducted a design stress test.You can answer the question about how to disable a service, or describe how a service fails.
It is diffic
Memcached:lruReasons for high concurrency support: multiplexed IO (message notification mode), multithreaded mode (number of cores in CPU)Distributed scenarios:# normal hash distribution (modulo)# Consistent hash distribution (0-232 rings)RedisLRU: Remove one of the least recently accessed keys from the databaseRandom elimination algorithm: delete a key from the database randomlyTTL elimination algorithm: delete one of the fastest expired keys from the databaseObject counter: Reference to Counte
Follow the real Internet architect and learn the direction of the Internet architect! Maybe you also worry about the bad job, the salary is not high, perhaps you are still struggling with your skill level enough not to find the big job and worry, then here we introduce the Internet Architect Course Learning system for all want to learn high-end technology, and later want to engage in the development of the Internet industry "classmate", Really do in the company's actual use, solve the actual pro
Memcached
Redis
Persistence of
Not supported
Support
Distributed
Support
Support Master-SlaveInvolves complex operations that may require a distributed lock to support
Thread
Multithreading
Single thread avoids unnecessary context switching and race conditionsThread closure concept, the task of shutting down a thread, naturally
Redis:1, master-slave configuration (master-slave replication will not block the primary,)1) Bind 192.168.1.2 (please modify the IP address of the machine, otherwise the client cannot access it)2) slaveof 192.168.1.1 6379 (mapped to the primary server)3) You can disable data persistence in master, just comment out all the save configurations in the master configuration file and configure data persistence on slave onlyMemcached1,
For the company to build a test structure, requirements and really close to the environment need to install Nginx, PHP, MySQL, memcached, redis!
But only to a R720 server, there is no way, can only run all on one stage
Server model: Dell R710
Memory: 4G
Operating system: CentOS 6.4
cpu:e5520
Individual Package Versions:
Nginx-1.2.1
Php-5.4.14
Mysql-5.5.29
Memc
interface. The Performance of O (1) can be played even if the number of connections to the server increases.
libevent: http://www.monkey.org/~provos/libevent/
built-in memory storage : In order to improve performance, the data stored in the memcached is saved in the memcached internal memory storage space ;
Because the data exists only in memory, restarting the
service, now only 127001 access is allowed
Comment out the bind 127.0.0.1 in the configuration. Don't forget to restart redis.Java Development 20: Redis in the Real World: How does Redis defeat memcached in applications that contain a large number of read operations?
In addition, I have discussed common server-based data storage, such as MongoDB and CouchDB. Eac
interface. The Performance of O (1) can be played even if the number of connections to the server increases.
libevent: http://www.monkey.org/~provos/libevent/
built-in memory storage : In order to improve performance, the data stored in the memcached is saved in the memcached internal memory storage space ;
Because the data exists only in memory, restarting the
Directory of this documentMemcached's distributed· What does memcached mean by distributed?· A distributed approach to cache::memcached· Calculate dispersion based on remainder· Disadvantages of dispersion calculation based on remainderConsistent Hashing· A brief description of consistent hashing· Library of functions supporting consistent hashing· SummarizeMemcached's distributedAs described in the 1th tim
Tags: installing memcached21.2 memcached IntroductionWhat is NoSQL?1. Non-relational database is NoSQL, relational database represents MySQL2. For a relational database, it is necessary to store the data in libraries, tables, rows, fields, query the time according to the conditions of a line to match, when the equivalent is very large time and resources, especially the data needs to be retrieved from the disk3. The NoSQL database storage principle is
incr/decr command to increase or decrease the storage type. Here, only the frequently used commands in development and O M are listed.
Supplement 1: several caches in. NET Framework
There is no doubt about the importance of caching in websites. I think the cache that many Asp.net developers prioritize when developing web application systems is not a third-party cache solution (such as distributed cache memcached and
What is memcached?Memcached is a software developed by Brad Fitzpatric, a Danga Interactive company in LiveJournal. It has become an important factor in enhancing Web application extensibility in many services such as watercress, Facebook, and Vox.Many Web applications save data to an RDBMS, where the application server reads the data and displays it in the browser. However, with the increase of data volume
Reprint: http://fanshuyao.iteye.com/blog/2384074First, Redis:Https://github.com/MicrosoftArchive/redis/releases1, Redis-x64-3.2.100.msi for the installation version2, Redis-x64-3.2.100.zip for compression packageSecond, because I use the installation version, this issue is also the installation version of the problem1, after the installation of the directory2. Th
Redis is a high-performance, memory-based Key-value database.Features of ReidsRedis is essentially a key-value type of in-memory database, much like memcached, where the entire database is loaded in memory for operation, and the database data is periodically flush to the hard disk for storage by asynchronous operations . Because it is pure memory Operation , Redis
In-depth introduction to the Redis-redis underlying data structure (I), in-depth introduction to redis-redis1. Overview
I believe everyone who has used Redis knows that Redis is a key-value-based distributed storage system, similar to Me
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.