Skip to content

Commit 65b0450

Browse files
author
lijianguo
committed
chore(ps):add ps:stop/start docs
1 parent fb7f523 commit 65b0450

3 files changed

Lines changed: 55 additions & 13 deletions

File tree

src/applications/managing-app-processes.md

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ $ drycc scale sleeper=1 -a steely-mainsail
9090
Scaling processes... but first, coffee!
9191
done in 0s
9292
=== steely-mainsail Processes
93-
--- cmd:
93+
--- cmd (started): 1
9494
steely-mainsail-cmd-3291896318-nyrim up (v3)
95-
--- sleeper:
95+
--- sleeper (started): 1
9696
steely-mainsail-sleeper-3291896318-oq1jr up (v3)
9797
```
9898

@@ -107,8 +107,9 @@ $ drycc scale sleeper=0 -a steely-mainsail
107107
Scaling processes... but first, coffee!
108108
done in 3s
109109
=== steely-mainsail Processes
110-
--- cmd:
110+
--- cmd (started): 1
111111
steely-mainsail-cmd-3291896318-nyrim up (v3)
112+
--- sleeper (started): 0
112113
```
113114

114115
## Scaling Processes
@@ -121,7 +122,7 @@ $ drycc scale cmd=5 -a iciest-waggoner
121122
Scaling processes... but first, coffee!
122123
done in 3s
123124
=== iciest-waggoner Processes
124-
--- cmd:
125+
--- cmd (started): 5
125126
iciest-waggoner-web-3291896318-09j0o up (v2)
126127
iciest-waggoner-web-3291896318-3r7kp up (v2)
127128
iciest-waggoner-web-3291896318-gc4xv up (v2)
@@ -140,13 +141,13 @@ $ drycc scale web=5
140141
Scaling processes... but first, coffee!
141142
done in 4s
142143
=== scenic-icehouse Processes
143-
--- web:
144+
--- web (started): 5
144145
scenic-icehouse-web-3291896318-7lord up (v2)
145146
scenic-icehouse-web-3291896318-jn957 up (v2)
146147
scenic-icehouse-web-3291896318-rsekj up (v2)
147148
scenic-icehouse-web-3291896318-vwhnh up (v2)
148149
scenic-icehouse-web-3291896318-vokg7 up (v2)
149-
--- background:
150+
--- background (started): 1
150151
scenic-icehouse-web-3291896318-background-yf8kh up (v2)
151152
```
152153

@@ -164,14 +165,55 @@ $ drycc scale web=3
164165
Scaling processes... but first, coffee!
165166
done in 1s
166167
=== scenic-icehouse Processes
167-
--- background:
168+
--- background (started): 1
168169
scenic-icehouse-web-3291896318-background-yf8kh up (v2)
169-
--- web:
170+
--- web (started): 3
170171
scenic-icehouse-web-3291896318-7lord up (v2)
171172
scenic-icehouse-web-3291896318-rsekj up (v2)
172173
scenic-icehouse-web-3291896318-vokg7 up (v2)
173174
```
174175

176+
## Stop or Start Processes
177+
178+
Applications deployed on Drycc Workflow,we can stop or start processes via the [process model][].
179+
Use `drycc ps:stop` to stop the processes, and `drycc ps:start` to start the processes
180+
181+
```
182+
$ drycc ps -a echoed-lollipop
183+
=== echoed-lollipop Processes
184+
--- background (started): 1
185+
echoed-lollipop-background-794c749dc4-yf8kh up (v2)
186+
--- web (started): 3
187+
echoed-lollipop-web-67cfc78bdc-7lord up (v2)
188+
echoed-lollipop-web-67cfc78bdc-rsekj up (v2)
189+
echoed-lollipop-web-67cfc78bdc-vokg7 up (v2)
190+
```
191+
192+
In this example, we are stopping the process type `background` and `web`.
193+
194+
```
195+
$ drycc ps:stop background web -a echoed-lollipop
196+
Scaling processes... but first, coffee!
197+
done in 3s
198+
=== echoed-lollipop Processes
199+
--- background (stopped): 1
200+
--- web (stopped): 3
201+
```
202+
203+
In this example, we are starting the process `web`, and keep the process `background` stopping.
204+
205+
```
206+
$ drycc ps:start web
207+
Scaling processes... but first, coffee!
208+
done in 4s
209+
=== echoed-lollipop Processes
210+
--- background (stopped): 1
211+
--- web (started): 3
212+
echoed-lollipop-web-67cfc78bdc-4z2hw up (v2)
213+
echoed-lollipop-web-67cfc78bdc-fdx4n up (v2)
214+
echoed-lollipop-web-67cfc78bdc-h2vxf up (v2)
215+
```
216+
175217
## Autoscale
176218

177219
Autoscale allows adding a minimum and maximum number of pods on a per process type basis. This is accomplished by specifying a target CPU usage across all available pods.
@@ -232,17 +274,17 @@ Kubernetes to terminate the old process and launch a new one in its place.
232274
```
233275
$ drycc ps
234276
=== scenic-icehouse Processes
235-
--- web:
277+
--- web (started): 3
236278
scenic-icehouse-web-3291896318-7lord up (v2)
237279
scenic-icehouse-web-3291896318-rsekj up (v2)
238280
scenic-icehouse-web-3291896318-vokg7 up (v2)
239-
--- background:
281+
--- background (started): 1
240282
scenic-icehouse-background-3291896318-yf8kh up (v2)
241283
$ drycc ps:restart scenic-icehouse-background-3291896318-yf8kh
242284
Restarting processes... but first, coffee!
243285
done in 6s
244286
=== scenic-icehouse Processes
245-
--- background:
287+
--- background (started): 1
246288
scenic-icehouse-background-3291896318-yd87g up (v2)
247289
```
248290

src/applications/managing-resource-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ You can verify the CPU and memory limits by inspecting the application process P
105105
```
106106
$ drycc ps
107107
=== indoor-whitecap Processes
108-
--- web:
108+
--- web (started): 1
109109
indoor-whitecap-v14-web-8slcj up (v14)
110110
$ kubectl --namespace=indoor-whitecap describe po indoor-whitecap-v14-web-8slcj
111111
Name: indoor-whitecap-v14-web-8slcj

src/quickstart/deploy-an-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ $ drycc scale cmd=2 -a proper-barbecue
9595
Scaling processes... but first, coffee!
9696
done in 36s
9797
=== proper-barbecue Processes
98-
--- cmd:
98+
--- cmd (started): 2
9999
proper-barbecue-v18-cmd-rk644 up (v18)
100100
proper-barbecue-v18-cmd-0ag04 up (v18)
101101
```

0 commit comments

Comments
 (0)