Multithreaded-HTTP-Server-with-Load-Balancer

所属分类:云原生工具
开发工具:C
文件大小:117KB
下载次数:0
上传日期:2020-11-24 02:08:57
上 传 者sh-1993
说明:  ....负载平衡器在自己的线程上启动服务器,并将请求发送到不同的服务器。实现...
(This project was created as part of the curriculum at CSE 130 Principles of Computer Systems Design at the University of California, Santa Cruz. The project was written in c and uses pthreads to handle multiple GET, POST, and HEAD requests in parallel. The load balancer spins up servers on their own threads and sends requests to different)

文件列表:
DESIGN.pdf (78496, 2020-11-24)
Makefile (659, 2020-11-24)
WRITEUP.pdf (33119, 2020-11-24)
loadbalancer.c (15770, 2020-11-24)
requestQueue.c (2316, 2020-11-24)
requestQueue.h (562, 2020-11-24)
serverMinHeap.c (11470, 2020-11-24)
serverMinHeap.h (1541, 2020-11-24)

To run this program first make it with make or make clean. make clean removes the binary files. Next type ./loadbalancer LISTENPORT where LISTENPORT is the port number you want to listen to requests on After this the user can input the server ports that the loadbalancer will use to handle request. In addition the user can enable two optional arguments -R and -N followed by numbers. R is the number of requests to recheck the servers and N is the number of threads to run if R request haven't been recieved for 5 seconds then the servers will be probed.

近期下载者

相关文件


收藏者