加入收藏 | 设为首页 | 会员中心 | 我要投稿 晋中站长网 (https://www.0354zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 系统 > 正文

分布式系统中的服务器管理

发布时间:2022-10-31 14:01:15 所属栏目:系统 来源:转载
导读: 在本文中服务器管理系统,我们将详细介绍如何在分布式系统中完成服务器管理的概念。
服务器管理:
分布式文件服务的实现由有状态或无状态文件服务器执行。


有状态服务器或无状态服务器的

在本文中服务器管理系统,我们将详细介绍如何在分布式系统中完成服务器管理的概念。

服务器管理:

分布式文件服务的实现由有状态或无状态文件服务器执行。

有状态服务器或无状态服务器的选择取决于应用程序。

无状态服务器和有状态服务器的区别:Sr. No.ParametersStateless ServerStateful Server

1.

Definition

The server does not need to maintain the state of a process in stateless protocols.

The server must save the status of a process in stateful protocols.

2.

Examples

HTTP (HyperText Transfer Protocol), UDP (User Datagram Protocol), DNS (Domain Name System), SMTP (Simple Mail Transfer Protocol), etc.

FTP (File Transfer Protocol), Telnet, TCP (Transmission Control Protocol).

3.

Server Constraints

The server is not required to maintain information.

The server must maintain the status as well as session information.

4.

Dependency

The client and server are independent as no state is required to be maintained and hence, loosely coupled.

The client and server are bound together as they rely on each other.

5.

Design

It is simple to design.

It is complex to design as the server handles a lot of functionality and moreover, data also needs to be retained.

6.

Handling of Requests

Requests in Stateless contain everything they need and are processed in a “request” and a “response” pair.

Requests are constantly dependent on the server-side status while using Stateful.

7.

Architecture Scaling

Scaling of stateless architecture is easy.

Scaling stateful architecture is difficult.

8.

Transaction Handling

The handling of transactions is quicker in stateless servers.

The handling of transactions is relatively slower in stateful servers.

9.

Crash Management

Stateless protocols operate better in the event of a crash since there is no state that needs to be restored. It is simple to restart a server that failed during the crash.

The crash management is difficult here because the server maintains the status and session information and when a crash occurs, all of the information is lost. So, it is difficult to recover after a crash.

10.

Server Usage

Different servers can handle different information at a given time.

Every request must be processed by the same server.

为什么使用无状态服务器?

如上所述,选择无状态服务器的原因有很多:

服务器创建语义:

服务器进程是独立的,它对客户端进行远程过程调用,因为客户端和服务器进程具有不同的生命周期,在不同的计算机上运行,并且具有不同的地址空间。按需服务器进程在其客户端进程之前创建或可能创建和安装。以下是基于生命周期的 RPC 服务器:

有状态模型,其中客户端依赖服务器进行大部分计算操作。其难以扩展是其原因。此外,技术进步与功能强大的客户端计算机的开发相结合,有助于向无状态的首选环境过渡。这让开发人员腾出时间和精力专注于产品开发,而不是像服务器软件实现这样的技术难题,这在有状态系统中很常见。

(编辑:晋中站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!