This document provides guidelines for maintaining high-quality Rust code. These rules MUST be followed by all AI coding agents and contributors.
All code you write MUST be fully optimized.
"Fully optimized" includes:
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| @echo off | |
| setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION | |
| ::this also support calls that contains a absolute windows path | |
| ::check of one of the params contain a absolute windows path | |
| echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul | |
| if %errorlevel% == 1 ( | |
| ::if not just git with the given parameters | |
| call :git %* |
State as of 2017-07-31.
You can also check a guide to upgrade CUDA on a [PC with with GTX 980 Ti and Ubuntu 16.04](https://gist.github.com/bzamecnik/61b293a3891e166797491f38d579d060.
| FROM golang:alpine | |
| MAINTAINER Eugene Klimov <bloodjazman@gmail.com> | |
| RUN apk --no-cache add git && \ | |
| mkdir -p /zetcd && \ | |
| GOPATH=/zetcd go get github.com/coreos/zetcd/cmd/zetcd && \ | |
| apk del git && \ | |
| cp -v /zetcd/bin/zetcd /bin/zetcd && \ | |
| rm -rf /zetcd |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>io.github.rodrik</groupId> | |
| <artifactId>spring-boot-was</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <packaging>war</packaging> | |
| <properties> | |
| <java.version>1.6</java.version> | |
| </properties> |
Original guide with a standard build is here.
With this guide, I'm adding more instructions to enable support for NVIDIA CUVID and NVIDIA NPP for enhanced encode and decode performance.
First, prepare for the build and create the work space directory:
cd ~/
| I have run an nginx container... | |
| docker ps | |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
| 6d67de07731d nginx "nginx -g 'daemon ..." 40 minutes ago Up 40 minutes 80/tcp, 443/tcp epic_goldberg | |
| I want to use Debian for debug: | |
| docker run -it --pid=container:6d67de07731d --net=container:6d67de07731d --cap-add sys_admin debian | |
| I can see the nginx process: |