Warning
These guidelines haven't been updated since 2016. Learn more…
Table of contents
| from locust import HttpLocust, TaskSet, task | |
| class MostBasicLoadTest(TaskSet): | |
| def on_start(self): | |
| """ on_start is called when a Locust start before any task is scheduled """ | |
| self.login() | |
| def login(self): | |
| self.client.post("/api/api-token-auth/", | |
| { |
| #Author: Tomasz Subik http://tsubik.com | |
| #Date: 2014-05-27 | |
| #License: MIT | |
| Param( | |
| [parameter(Mandatory=$false)] | |
| [alias("n")] | |
| $name = [System.Guid]::NewGuid().ToString(), | |
| [parameter(Mandatory=$false)] | |
| [alias("p")] |
| ALLUSERSPROFILE C:\DWASFiles\Sites\WebjobsEnvvars\ProgramData | |
| APP_POOL_CONFIG C:\DWASFiles\Sites\WebjobsEnvvars\Config\applicationhost.config | |
| APP_POOL_ID WebjobsEnvvars | |
| APPDATA C:\DWASFiles\Sites\WebjobsEnvvars\AppData | |
| APPSETTING_REMOTEDEBUGGINGVERSION 11.0.611103.400 | |
| APPSETTING_ScmType None | |
| APPSETTING_WEBSITE_NODE_DEFAULT_VERSION 0.10.29 | |
| APPSETTING_WEBSITE_SITE_NAME WebjobsEnvvars | |
| aspnet:DisableFcnDaclRead true | |
| aspnet:PortableCompilationOutput true |
| class Program | |
| { | |
| private const string Cyrillic = "Cyrillic"; | |
| private const string Nullable = "?"; | |
| static void Main() | |
| { | |
| string schemaText; | |
| using (var r = new StreamReader("schema.txt")) |
| ## Install Docker | |
| ``` | |
| # install the backported kernel | |
| $ sudo apt-get update | |
| $ sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring | |
| $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| $ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
| (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec |
| FROM <private repo> | |
| MAINTAINER Ross Kukulinski "[email protected]" | |
| ADD nginx.toml /etc/confd/conf.d/nginx.toml | |
| ADD templates/nginx.tmpl /etc/confd/templates/nginx.tmpl | |
| ADD confd-watch /usr/local/bin/confd-watch | |
| RUN chmod +x /usr/local/bin/confd-watch |
| \RAS\Bytes Transmitted By Disconnected Clients | |
| \RAS\Bytes Received By Disconnected Clients | |
| \RAS\Failed Authentications | |
| \RAS\Max Clients | |
| \RAS\Total Clients | |
| \WSMan Quota Statistics(*)\Process ID | |
| \WSMan Quota Statistics(*)\Active Users | |
| \WSMan Quota Statistics(*)\Active Operations | |
| \WSMan Quota Statistics(*)\Active Shells | |
| \WSMan Quota Statistics(*)\System Quota Violations/Second |
| #cloud-config | |
| coreos: | |
| etcd: | |
| # generate a new token for each unique cluster from https://discovery.etcd.io/new | |
| discovery: https://discovery.etcd.io/<token> | |
| # multi-region deployments, multi-cloud deployments, and droplets without | |
| # private networking need to use $public_ipv4 | |
| addr: $private_ipv4:4001 | |
| peer-addr: $private_ipv4:7001 |
Warning
These guidelines haven't been updated since 2016. Learn more…
Table of contents