File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change
1
+ location / {
2
+ echo 'Hello world';
3
+ }
4
+
1
5
location /slow-reply {
2
6
echo_sleep 2;
3
7
echo 'this text will come in response body with HTTP 200 after 2 seconds';
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ http {
14
14
server {
15
15
listen 8080 ;
16
16
17
- location / {
18
- echo 'Hello world' ;
19
- }
20
-
21
17
include custom.conf;
22
18
}
23
19
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ in {
126
126
} ;
127
127
128
128
environment . systemPackages = [
129
+ pkgs . bcc
130
+ pkgs . pgmetrics
131
+ pkgs . pg_activity
132
+ pkgs . htop
129
133
pkgs . vegeta
130
134
(
131
135
pkgs . writeShellScriptBin "vegeta-bench" ''
Original file line number Diff line number Diff line change 30
30
31
31
${ nixopsBin } ssh -d pg_net client
32
32
'' ;
33
+ nixopsSSHServer =
34
+ writeShellScriptBin ( "net-cloud-ssh-server" )
35
+ ''
36
+ set -euo pipefail
37
+
38
+ cd nix
39
+
40
+ ${ nixopsBin } ssh -d pg_net server
41
+ '' ;
33
42
nixopsReproTimeouts =
34
43
writeShellScriptBin ( "net-cloud-reproduce-timeouts" )
35
44
''
50
59
51
60
${ nixopsBin } delete -d pg_net
52
61
'' ;
62
+ nixopsInfo =
63
+ writeShellScriptBin ( "net-cloud-info" )
64
+ ''
65
+ set -euo pipefail
66
+
67
+ cd nix
68
+
69
+ ${ nixopsBin } info
70
+ '' ;
53
71
in
54
72
[
55
73
nixopsDeploy
56
74
nixopsSSH
75
+ nixopsSSHServer
57
76
nixopsReproTimeouts
58
77
nixopsDestroy
78
+ nixopsInfo
59
79
]
You can’t perform that action at this time.
0 commit comments