Presentation is loading. Please wait.

Presentation is loading. Please wait.

ITIS 3110 Jason Watson. Replication methods o Primary/Backup o Master/Slave o Multi-master Load-balancing methods o DNS Round-Robin o Reverse Proxy.

Similar presentations


Presentation on theme: "ITIS 3110 Jason Watson. Replication methods o Primary/Backup o Master/Slave o Multi-master Load-balancing methods o DNS Round-Robin o Reverse Proxy."— Presentation transcript:

1 ITIS 3110 Jason Watson

2 Replication methods o Primary/Backup o Master/Slave o Multi-master Load-balancing methods o DNS Round-Robin o Reverse Proxy

3

4 Duplication of data between multiple machines Two main uses o Failure mitigation o Load balancing

5 Primary/Backup Master/Slave Multi-Master

6 Ensures availability of a ‘resource’ Only one server provides access to resource at a time Does not provide any load balancing Uses o Services which do not understand replication o Services which would be too expensive to replicate  Too much active state

7 Primary server is active o Has exclusive lock on resource Backup server is on standby Heartbeat between Primary and Backup o Allows each server to keep track of other’s state o Heartbeat can be in-band or out-of-band  In-band: e.g. over same network link  Out-of-band: e.g. serial, secondary network connection, etc.

8 When heartbeat lost: Backup steals lock on resource o Ensures primary is down (e.g. cut power) o Performs recovery on resource (e.g. fsck) o Backup may even steal primary’s MAC address! Backup becomes primary Old primary will become backup once heartbeat re-established

9 Client or Router PrimarySecondary Resource Heartbeat

10 File Servers o Disk array is the resource Virtual Machine Servers o Virtual Machine is the resource

11 All servers can be read Only master server accepts writes Can provide rudimentary load balancing Must be implemented in a protocol Uses o Stateless, Read-Heavy protocols

12 Can be push or pull o Master pushes changes to slaves o Slaves pull changes from master

13 Most protocols support incremental updates o Every change is versioned o Master keeps a journal of changes o Slave asks for updates since a particular version o Master replays journal from version requested All protocols support full updates o Master sends complete data set to slave

14 MasterSlave Read Write Updates

15 DNS Kerberos LDAP Databases

16 Any node can accept read or writes Will distribute writes to all other nodes Very complicated to implement Cluster file systems use this method

17 Multi-master replication technique Shares memory space between multiple machines Common usage is to distribute HTTP session state between web servers

18

19 Load balancing distributes load across multiple servers Often relies on replication to distribute data to the multiple servers

20 DNS Round-Robin Reverse Proxy

21 Simplest Method Multiple DNS records for a single address DNS server will return addresses in different order every time it is requested Does not assign work based on load Can not detect failed servers

22 www.google.com.604213INCNAMEwww.l.google.com. www.l.google.com.52INA74.125.67.106 www.l.google.com.52INA74.125.67.103 www.l.google.com.52INA74.125.67.104 www.l.google.com.52INA74.125.67.99 www.l.google.com.52INA74.125.67.147 www.l.google.com.52INA74.125.67.105

23 DNS Kerberos LDAP SMTP HTTP

24 SMTP does not require replication Servers receive and transmit mail They do not need to all have the same mail messages

25 HTTP is an odd beast Purest form is stateless o Shared file system is sufficient Sessions, other state complicates matters o Reverse Proxy is simpler o DNS Round-Robin + Distributed Shared Memory works too

26 Device that sits in front of a group of servers and direct traffic o Client traffic is terminated on load balancer o Load balancer opens new connection to one back-end server and forwards client data Often used for Web servers Many companies provide ‘turn-key’ solutions Can make intelligent decisions when forwarding traffic to servers o Send less traffic to heavily loaded servers o Skip dead servers

27 SSL endpoint Compression Caching Intrusion Prevention

28 Client Server 192.168.1.30 Server 192.168.1.20 Server 192.168.1.10 Reverse Proxy 172.16.1.245

29 FTP HTTP

30 Many HTTP reverse proxies support session pinning Session pinning o A user session will always be forwarded to same server o Allows that server to keep track of session data for that user


Download ppt "ITIS 3110 Jason Watson. Replication methods o Primary/Backup o Master/Slave o Multi-master Load-balancing methods o DNS Round-Robin o Reverse Proxy."

Similar presentations


Ads by Google