Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Latest commit

 

History

History
41 lines (29 loc) · 724 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 724 Bytes

Technopark 3 semester

Highload HW 1: HTTP server

Server start options

  $ go run *.go -p=:80 -c=0 -wr=/var/www/html -w=4
  • -p Port to run server on
  • -c Number of cores to utilize
  • -wr Webroot directory, all static lies here
  • -w Worker count

Docker run

  $ docker build -t [NAME] .
  $ docker run --publish 80:80 --name [CONTAINER_NAME] [--rm [NAME] or -t [NAME]] 

Http test suite

Tests repo

All tests passed

  $ ./httptest.py

Run load on server

  $ ab -n 100000 -c 100 127.0.0.1:80/httptest/dir2/page.html