LiU > IDA > Real-Time Systems Lab
ABOUT
MEMBERS
COOPERATION
PROJECTS
PUBLICATIONS
COURSES
OPEN POSITIONS
THESES
ALUMNI

Announcements

[16 May 2017] A bachelor student at RTSLAB was awarded the best thesis award from IDA - Tim Hultman. more ...

[12 May 2016] A master student at RTSLAB was awarded the best thesis award from IDA - Alexander Alesand. more ...

[12 May 2016] A bachelor student at RTSLAB was awarded the best thesis award from IDA - Mathias Almquist and Viktor Almquist. more ...

[25 May 2015] A master student at RTSLAB was awarded the best thesis award from IDA - Klervie Toczé. more ...

[26 May 2014] A bachelor student at RTSLAB was awarded the best thesis award from IDA - Simon Andersson. more ...

[31 May 2012] A masters student at RTSLAB was awarded the best thesis award from IDA - Ulf Magnusson. more ...

[27 February 2008] A masters student at RTSLAB was awarded the best thesis award from IDA - Johan Sigholm. more ...

[03 March 2004] A masters student at RTSLAB was awarded the best thesis award from IDA - Tobias Chyssler. more ...

[01 Jul 2003] For second year in a row a masters student at RTSLAB was awarded the best thesis award from SNART - Mehdi Amirijoo. more ...

Master Thesis - Past Projects - Abstract

Evaluating performance of a fault-tolerant system that implements replication and load balancing

ID: LIU-IDA/LITH-EX-G--17/063--SE

Companies and organizations increasingly depend on their computer systems to help them in their work. This means that the availability of these computer systems becomes even more important as organizations are increasingly dependent on it to function. Therefore, fault tolerance needs to be considered when designing a computer system. However, when implementing fault tolerance to increase the availability it may affect the performance of the system. This thesis describes an implementation of a system that provides fault tolerance against fail-stop faults and analyzes the performance. The system consist of a primary server and a backup server and each has a GO web server and a MySQL database installed. MySQL has a built-in functionality for replication that is used to replicate the data from the primary to the replica. Two different approaches for replication are used and compared in this thesis. The system also has a load balancing server with a program called HAProxy installed. The program is used to switch between servers in case of a failure and enables load balancing between the servers, although this setup only allows for read requests to be sent to the backup server. The measurements of the implemented system shows that enabling load balancing for read requests has little effect on lower the response time when the system is under low load. For 25 users the response time was just 5 ms faster when enabling load balancing. For 50 users however, the response time was 33 ms faster when enabling load balancing. The system was evaluated using measurements of the response time and the percentage of stale data under different network loads and different requests from the system. Two different methods of replication in MySQL: asynchronous and semisynchronous were tested to see how they affect the response time and the consistency of the system. The measurements show asynchronous replication has a lower response time, but semisynchronous replication has less stale data. This means that choosing between asynchronous or semisynchronous replication is a trade-off between choosing lower response time or choosing less stale data and less risk of losing data.

Keywords: load balancing, fault tolerance, performance, replication

File: Click here to download/view the thesis

Author(s): Rickard Hellenberg and Oskar Gustafsson

Contact: Simin Nadjm-Tehrani

Click here to return.
Last modified February 2017. If you have questions or suggestions for the webpages, contact the webmaster