当前位置:网站首页>What is distributed and clustered?What is the difference?
What is distributed and clustered?What is the difference?
2022-07-31 02:47:00 【Taoge is still flying】
Go to: https://blog.csdn.net/jiangyu1013/article/details/80417961
PS: This article is a note, only part of the text is original, and quite a lot of content is just collected, sorted, refined, and summarized by others.
Not marked as original out of respect and thanks to the original authors of some of the content...
But if you want to reprint, please bring my home address. After all, these contents are not ready-made. ~~ ~
I. Explain in vernacular, you can understand it in half a minute, and use examples in life to illustrate:
The small restaurant used to have only one chef, who cut and washed vegetables, prepared and cooked all the vegetables.
Later, there were too many guests, one chef in the kitchen was too busy, and another chef was hired. Both chefs could cook the same dishes. The relationship between the two chefs was a cluster.
In order to let the chef concentrate on cooking and make the dishes to the extreme, we hired a side chef to be responsible for cutting, preparing, and preparing the vegetables... The relationship between the chef and the side chef is distributed.
A side chef is too busy, and another side chef is hired. The relationship between the two side chefs is a cluster.
A side chef has asked for leave for some reason, but the rest of the side chefs still do whatever they need to do. It's just that the tasks of the side chefs who didn't ask for leave are evenly increased, but their tasks and responsibilities remain the same.This is the cluster.
Cluster: Multiple people doing the same thing together.
Distributed: Multiple people working together to do different things.
2. Diagram:
The above content is reproduced from: https://www.zhihu.com/question/20004877
The following is personal curation:
Third, distinguish the connection (in fact, the above content should have already made you understand the two)
1) I remember there is such a sentence in a book about tcp/ip: Distributed refers to a system in which multiple systems cooperate to complete a specific task.
Distributed is to solve the problem of centralized management. It is too slow to superimpose all tasks to a node for processing.
So divide a big problem into multiple small problems, solve them separately, and finally work together.The main work of distributed is to decompose tasks and disassemble functions.
2) The main usage scenario of a cluster is to share the pressure of requests, that is, to deploy the same application on several servers to share client requests.
When the pressure increases further, mysql may not be able to face a lot of write pressure in the part that needs to be stored.Because after mysql is formed into a cluster, the main writing pressure is still on the master machine, and other slave machines cannot share the writing pressure, so at this time, distribution is also introduced.
The main application scenario of distributed is that a single machine can no longer meet the performance requirements, and multiple nodes must be integrated, and the nodes are related and interacted.It is equivalent to when writing mysql, each node stores part of the data, which is the origin of distributed storage.Store some unstructured data: static files, pictures, pdfs, small videos... These are the origins of distributed file systems.
3) The cluster is mainly to simply add machines to solve the problem, without any decomposition of the problem itself;
Distributed processing must include task decomposition and answer merging.A subtask node in the distribution may be replaced by a cluster; any node in the cluster is doing a complete task.
Cluster and distributed are composed of multiple nodes, but the communication coordination between clusters is basically not required; and the communication coordination of distributed nodes is essential.
Split a system into different subsystems and deploy them on different servers (this is called distributed),
Then deploy multiple identical subsystems on different servers (this is called clustering). The same subsystem deployed on different servers should be load balanced.
Distributed: A business is split into multiple sub-businesses and deployed on multiple servers.
Cluster: The same service is deployed on multiple servers.
Reference: https://www.zhihu.com/question/20004877
边栏推荐
- LeetCode Daily Question 2022/7/25-2022/7/31
- The simulation application of common mode inductance is here, full of dry goods for everyone
- 拒绝加班,程序员开发的效率工具集
- 【shell基础】判断目录是否为空
- LeetCode 每日一题 2022/7/25-2022/7/31
- 10. Redis implements likes (Set) and obtains the total number of likes
- 完整复制虚拟机原理(云计算)
- Layer 2 broadcast storm (cause + judgment + solution)
- 【C语言基础】解决C语言error: expected ‘;‘, ‘,‘ or ‘)‘ before ‘&‘ token
- Observer mode (1)
猜你喜欢
字体压缩神器font-spider的使用
AI在医疗影像设备全流程应用
f.grid_sample
Difference between CMOS and TTL?
Teach you how to configure Jenkins automated email notifications
基于opencv实现人脸检测
f.grid_sample
Introduction to flask series 】 【 flask - using SQLAlchemy
[Android] Room - Alternative to SQLite
coldfusion8 background scheduled tasks take shell
随机推荐
SQL注入 Less47(报错注入) 和Less49(时间盲注)
【银行系列第一期】中国人民银行
LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING
The principle of complete replication of virtual machines (cloud computing)
8、统一处理异常(控制器通知@ControllerAdvice全局配置类、@ExceptionHandler统一处理异常)
SQL注入 Less54(限制次数的SQL注入+union注入)
mycat的主从关系 垂直分库 水平分表 以及mycat分片联表查询的配置详解(mysql5.7系列)
Huawei od dice js
Draw Your Cards
Chapter 9 SVM实践
软件积累 -- 截图软件ScreenToGif
多线程下类对象的服务承诺探讨
8. Unified exception handling (controller notifies @ControllerAdvice global configuration class, @ExceptionHandler handles exceptions uniformly)
JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply
AI中的数学思想
YOLOV5 study notes (3) - detailed explanation of network module
直播预告 | KDD2022博士论文奖冠亚军对话
【C语言】求两个整数m和n的最大公因数和最小公倍数之和一般方法,经典解法
YOLOV5学习笔记(二)——环境安装+运行+训练
Go 项目实战-获取多级分类下的全部商品