mirror of
https://github.com/bytedance/g3.git
synced 2026-05-03 06:00:42 +00:00
initial commit
This commit is contained in:
commit
13716f4923
1425 changed files with 163227 additions and 0 deletions
47
g3proxy/ci/polygraph/regress/simple_post.pg
Normal file
47
g3proxy/ci/polygraph/regress/simple_post.pg
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
|
||||
#include "vars.pg"
|
||||
|
||||
Content SimpleContent = {
|
||||
size = exp(13KB); // response sizes distributed exponentially
|
||||
cachable = 0%; // disable check of cache
|
||||
};
|
||||
|
||||
// a primitive server cleverly labeled "S101"
|
||||
// normally, you would specify more properties,
|
||||
// but we will mostly rely on defaults for now
|
||||
Server S = {
|
||||
kind = "S101";
|
||||
|
||||
addresses = server_address; // where to create these server agents
|
||||
|
||||
contents = [ SimpleContent ];
|
||||
direct_access = contents;
|
||||
};
|
||||
|
||||
// a primitive robot
|
||||
Robot R = {
|
||||
kind = "R101";
|
||||
|
||||
origins = S.addresses; // where the origin servers are
|
||||
addresses = client_address; // where these robot agents will be created
|
||||
|
||||
http_proxies = proxy_address;
|
||||
|
||||
req_methods = ["POST", "PUT": 10%];
|
||||
post_contents = [ SimpleContent ];
|
||||
put_contents = post_contents;
|
||||
|
||||
open_conn_lmt = 4;
|
||||
};
|
||||
|
||||
Phase P1 = {
|
||||
name = "simple_post";
|
||||
|
||||
goal.xactions = 100;
|
||||
goal.errors = 1;
|
||||
};
|
||||
|
||||
schedule(P1);
|
||||
|
||||
// commit to using these servers and robots
|
||||
use(S, R);
|
||||
Loading…
Add table
Add a link
Reference in a new issue