Ali cloud file access problem SLB case

background:

ECS has two servers are deployed in the same site, distributed through SLB for access.

problem:

If distributed at the first visit by SLB to the back-end server ECS1, uploaded files are also placed on ECS1 server.

Just distribute second visit to the ECS2 again through the SLB server, this time not access the files of the last upload.

Remarks:

File access method is as follows:

  • Distributed through SLB address: this does not guarantee just to distribute to the server file is located, is not feasible
  • All files stored in the fixed ECS1 server, accessed via a fixed ECS1 server address: If your network can directly access to the ECS can be OK, if you can not directly access the back-end server is not feasible ECS

solution:

1, real-time synchronization file on the back-end server ECS

Drawbacks: file redundancy; possible synchronization failure; performance issues

2, adding a file server

Disadvantages: to be continued

Guess you like

Origin www.cnblogs.com/cndota2/p/11685577.html