Difference between revisions of "Load-balancing"

From Simulace.info
Jump to: navigation, search
(Problem definition)
(Problem definition)
Line 10: Line 10:
 
</p>
 
</p>
 
<p>'''Load-balancing'''<br />
 
<p>'''Load-balancing'''<br />
short text here
+
In the case of web hosting service it means dividing the incoming request between multiple devices (called nodes) based on a set of rules (priority, weight, etc). The simulation is based on nginx load balancing.
 
</p>
 
</p>
  

Revision as of 18:03, 17 January 2016

  • Project name: Load-balancing
  • Class: 4IT496 (WS 2015/2016)
  • Author: Bc. Patrik Tomášek
  • Model type: Discrete-event simulation
  • Software used: SimProcess, trial version

Problem definition

A hosting company with it's own infrastructure is using so called "load balancing" to distribute the overall load between multiple servers (hardware) and “high-availability” to minimize service down-time.

Load-balancing
In the case of web hosting service it means dividing the incoming request between multiple devices (called nodes) based on a set of rules (priority, weight, etc). The simulation is based on nginx load balancing.

High-avaibility
Ensures that a system or component is operational for desirable time. The solution necessary to provide web hosting consists of many parts, where all of them need to be on-line for the whole to be operational. To enable HA a provider can use failover and backups. Failover is basically a backup piece of hardware, which ensures that when a component goes off-line another takes it's place. After that it's necessary to load the backup on the component that took over. If there is a SAN (storage area network) implemented than there is no need to load a backup, because failover just uses the same data from one central storage, which is used for all the server nodes. In the simulation a SAN is implemented and failover is taken into consideration.

Anti-DoS/DDoS
Denial-of-service (DoS) attack is an incident is witch the targeted service goes down. Distributed denial-of-service means, that more than one system is used to attack a single target. There are more means of possible protection against such attack. Setting up a decent firewall rules might be a good place to start, but it isn't so effective as implementing a device, which can mitigate the attack. A Radware defencePro device is implemented in the simulation.

Method

SIMPROCESS

Model

Whole model.jpg

Entities

Small request
text

Standard request
text

Large request
text

D-DoS
text

Resources

Load-balancer
text

Web server
There are two types of this resource, each with different capabilities:
Type 1
Type 2

Storage server SAN
text

Database server
text

Radware DefensePro
text

Processes

HTTP requests

Request generate.jpg
DoS mittigation

Dos mittigation.jpg
Load balancing

Load balancing.jpg
Requests served

Served requests.jpg

Results

Conclusion

Code