关于从多个服务器删除同一个文件的流程

简介:

 如果要设计实现从多个服务器同时删除同一个文件名的文件,那么流程应该怎么样呢?

见我几个月前的邮件:

 

Let MultipleWebServerAgent as the first-class controller and it will control all the WebServerAgent ,each WebServerAgent maintains a connection/access to a specified web server.

 

Normal Process :When do multiple delete , it do as follows:

a. Traverse all the WebServerAgents (W1,W2…Wn)

b. Create a local folder using the W(i)’s machine name as the folder name ,and emote download the folder from W(i) to local  inside the folder that just created.

c. Remote delete the folder from W(i)

d. If c is a success operation(without any exception ) ,then add the WebserverAgent of W(i) just operated into the successWebAgent list.

e. If (a) loop is finished ,which means the whole multiple delete operation is down ,then do local cleanup work.

f. Local clean up work is very easy ,just delete all the local folders created in step  (b)

 

 

 

Exception Process: Exception occurs will lead to rollback ,the action is as follows:

a. Traverse all the WebServerAgents (W1,W2…Wn)

b. Create a local folder using the W(i)’s machine name as the folder name ,and emote download the folder from W(i) to local  inside the folder that just created.

c. Remote delete the folder from W(i)

d. If c is a fail operation(throws exception ) ,then mark the WebserverAgent of W(i) just operated as failed WebServerAgent, break the (a) loop

e. Rollback operation: traverse all the successWebAgentlist of Normal Process step (d), and for each WebAgent ,do the folder upload work which can upload the folder from local back to WebServer

f. Local clean up.  delete all the local folders created in step  (b)





本文转自 charles_wang888 51CTO博客,原文链接:http://blog.51cto.com/supercharles888/1140285,如需转载请自行联系原作者

目录
相关文章
|
13天前
|
存储 弹性计算 Linux
阿里云账号注册、完成实名认证、试用云服务器和购买云服务器流程参考
本文为大家介绍新手用户从注册阿里云账号,完成实名认证,然后试用云服务器和购买云服务器的主要流程,适合初次购买和试用阿里云服务器的新手用户参考。
阿里云账号注册、完成实名认证、试用云服务器和购买云服务器流程参考
|
2月前
|
网络协议
​LabVIEW从另一个VI或通过VI服务器访问正在运行的可执行文件
​LabVIEW从另一个VI或通过VI服务器访问正在运行的可执行文件
24 0
|
6天前
|
小程序 数据安全/隐私保护
阿里云账号注册、完成实名认证,最后申请免费云服务器全流程
**阿里云新手指南:** 1. 注册阿里云账号,支持手机号或第三方快速注册。 2. 完成实名认证,个人选个人认证,企业选企业认证,支付宝认证快速。 3. 访问[免费服务器页面](https://free.aliyun.com/?source=5176.11533457&userCode=r3yteowb)申请3个月免费云服务器。 4. 选服务器,点击“立即试用”,按提示操作。 5. 服务器创建后,设密码,远程连接,配置安全组,部署应用,参考阿里云官方教程。
|
2月前
|
存储 SQL 数据挖掘
服务器数据恢复—误删除VMware虚拟机vmdk文件的数据恢复案例
服务器数据恢复环境: 某大厂PS4000服务器,服务器上部署VMware ESXi虚拟化平台。 服务器故障: 机房断电,重启后服务器中的某台虚拟机不能正常启动。管理员查看虚拟机配置文件,发现无法启动的虚拟机的配置文件除了磁盘文件以外其他配置文件全部丢失,xxx-flat.vmdk磁盘文件和xxx-000001-delta.vmdk快照文件还存在。联系VMware原厂工程师进行诊断,VMware原厂工程师尝试新建一个虚拟机,但发现存储空间不足,于是将故障虚拟机下的xxx-flat.vmdk磁盘文件删除了。VMware工程师重新建了一个虚拟机,分配了固定大小的虚拟磁盘,为虚拟机安装了Window
服务器数据恢复—误删除VMware虚拟机vmdk文件的数据恢复案例
|
1天前
|
JavaScript API
前后端数据交互.js文件的axios的写法,想要往后端发送数据,页面注入API,await的意思是同步等待服务器数据,并返回,axios注入在其他页面,其他页面调用的时候,同步作用
前后端数据交互.js文件的axios的写法,想要往后端发送数据,页面注入API,await的意思是同步等待服务器数据,并返回,axios注入在其他页面,其他页面调用的时候,同步作用
|
1天前
|
安全 固态存储 Linux
服务器linux操作系统重装的完整流程-傻瓜式教学
服务器linux操作系统重装的完整流程-傻瓜式教学
|
2天前
|
小程序 数据安全/隐私保护
阿里云服务器新手入门:注册账号、实名认证申请免费云服务器全流程
阿里云新手指南 1. 注册阿里云账号,支持手机号或支付宝等快捷注册。 2. 完成实名认证,个人/企业选择相应类型。 3. 访问免费服务器申请页面 4. 创建后,设置密码,通过安全组开通端口。 5. 使用教程包括远程连接、部署应用等,详细步骤见阿里云帮助中心。
14 0
|
8天前
|
数据安全/隐私保护
|
2月前
|
存储 小程序 数据库
阿里云学生服务器申请流程_学生党免费领7个月学生机
阿里云2024年推出学生优惠,大陆在籍学生可免费申领7个月学生服务器,配置为2核2G,无限流量,含独立IP。学生需注册账号、完成实名及学生认证,首月免费,完成任务可续费6个月。此外,还有300元无门槛优惠券可在阿里云高校计划中领取,适用于多种云产品。申请及优惠详情见官方链接。
1625 4
阿里云学生服务器申请流程_学生党免费领7个月学生机
|
2月前
|
Linux 网络安全
linux/服务器使用scp将一个服务器文件转移到另一个服务器上
linux/服务器使用scp将一个服务器文件转移到另一个服务器上
167 3