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

lieroz/tp-2017-autumn-highload

Repository files navigation

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

About

Implementation of http server for highload course.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages