Server Structure Design3
2014-05-16 15:30:55 1 举报
服务器结构设计是构建一个高效,可扩展和可靠的网络系统的关键组成部分。它包括了硬件和软件的选择,以及如何将这些组件组织在一起以最大化性能和效率。在服务器结构设计中,我们需要考虑各种因素,如处理能力,内存大小,存储容量,网络带宽,以及如何将这些资源分配给各个服务器以满足不同的业务需求。此外,我们还需要考虑如何通过冗余和备份来提高系统的可靠性和可用性。总的来说,服务器结构设计是一个复杂的过程,需要深入的技术知识和丰富的实践经验。但是,通过精心设计和优化,我们可以构建出一个能够满足未来业务需求的强大的网络系统。
作者其他创作
大纲/内容
HUNG_CMD
Switch and Execute cmd
Yes
Frontend
status_backend = DEBUG
START_PRINT
frontend
Corresponding Function
require_gatekeeper == NEW_CLIENT?
status_backend == HUNG or IDLE or DEBUG ?
Recv cmd form Client_fd ?(block)
get fromrequire_fifoout()?
status_backend = IDLE
require_fifoin (RESET_PRINTER)
require_frontend == RECOVER_CMD ?
ClientCmd:
Switch(require_frontend)
RECOVER_CMD
No
status_frontend = IDLE
require_fifoin (RECOVER_CMD)
Corresponding Functions()
status_backend == IDLE or DEBUG ?
status_frontend = BUSYrequire_gatekeeper = NONE
status_backend = PRINTING
gatekeeper
status_backend = HUNG
End Switch
RESET_PRINTER
(For Loop)start_print();
require_fifoin (PROJ_CMD)
status_frontend:IDLEBUSYStatus backend:IDLEDEBUGPRINGTINGHUNGINIT
PROJ_CMD
New Connectionrecv_cmd == HANDSHAKE?
status_backend == IDLE ?
For Loop Over
require_fifoin (MOTOR_MOVE)
Thread Interaction:
HANDSHAKE DISCONNECT GET_INFO GET_PARA GET_FILE RESET_PRINTER
core.cinit_sys()
require_frontend == HUNG_CMD?
status_frontend== IDLE ?
require_fifoin( HUNG_CMD)
Ignore cmd
status_backend == PRINTING ?
backend
Gatekeeper
require_frontend;status_backend;
require_fifoin (START_PRINT)
require_frontend == RESET_PRINTER ?
Status:
START_PRINTHUNG_CMD RECOVER_CMD MOTOR_MOVE PROJ_CMD HEARTBEAT
Backend
MOTOR_MOVE
status_backend == HUNG ?
Listen connection(from client)
require_gatekeeper;status_frontend;
GET_INFOGET_PARAGET_FILELAYERS_STATUSHEARTBEAT
Init 3D-printer
require_gatekeeper = NEW_CLIENT
DISCONNECT
0 条评论
下一页