You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/applications/managing-app-processes.md
+53-11Lines changed: 53 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,9 @@ $ drycc scale sleeper=1 -a steely-mainsail
90
90
Scaling processes... but first, coffee!
91
91
done in 0s
92
92
=== steely-mainsail Processes
93
-
--- cmd:
93
+
--- cmd (started): 1
94
94
steely-mainsail-cmd-3291896318-nyrim up (v3)
95
-
--- sleeper:
95
+
--- sleeper (started): 1
96
96
steely-mainsail-sleeper-3291896318-oq1jr up (v3)
97
97
```
98
98
@@ -107,8 +107,9 @@ $ drycc scale sleeper=0 -a steely-mainsail
107
107
Scaling processes... but first, coffee!
108
108
done in 3s
109
109
=== steely-mainsail Processes
110
-
--- cmd:
110
+
--- cmd (started): 1
111
111
steely-mainsail-cmd-3291896318-nyrim up (v3)
112
+
--- sleeper (started): 0
112
113
```
113
114
114
115
## Scaling Processes
@@ -121,7 +122,7 @@ $ drycc scale cmd=5 -a iciest-waggoner
121
122
Scaling processes... but first, coffee!
122
123
done in 3s
123
124
=== iciest-waggoner Processes
124
-
--- cmd:
125
+
--- cmd (started): 5
125
126
iciest-waggoner-web-3291896318-09j0o up (v2)
126
127
iciest-waggoner-web-3291896318-3r7kp up (v2)
127
128
iciest-waggoner-web-3291896318-gc4xv up (v2)
@@ -140,13 +141,13 @@ $ drycc scale web=5
140
141
Scaling processes... but first, coffee!
141
142
done in 4s
142
143
=== scenic-icehouse Processes
143
-
--- web:
144
+
--- web (started): 5
144
145
scenic-icehouse-web-3291896318-7lord up (v2)
145
146
scenic-icehouse-web-3291896318-jn957 up (v2)
146
147
scenic-icehouse-web-3291896318-rsekj up (v2)
147
148
scenic-icehouse-web-3291896318-vwhnh up (v2)
148
149
scenic-icehouse-web-3291896318-vokg7 up (v2)
149
-
--- background:
150
+
--- background (started): 1
150
151
scenic-icehouse-web-3291896318-background-yf8kh up (v2)
151
152
```
152
153
@@ -164,14 +165,55 @@ $ drycc scale web=3
164
165
Scaling processes... but first, coffee!
165
166
done in 1s
166
167
=== scenic-icehouse Processes
167
-
--- background:
168
+
--- background (started): 1
168
169
scenic-icehouse-web-3291896318-background-yf8kh up (v2)
169
-
--- web:
170
+
--- web (started): 3
170
171
scenic-icehouse-web-3291896318-7lord up (v2)
171
172
scenic-icehouse-web-3291896318-rsekj up (v2)
172
173
scenic-icehouse-web-3291896318-vokg7 up (v2)
173
174
```
174
175
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
+
175
217
## Autoscale
176
218
177
219
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.
232
274
```
233
275
$ drycc ps
234
276
=== scenic-icehouse Processes
235
-
--- web:
277
+
--- web (started): 3
236
278
scenic-icehouse-web-3291896318-7lord up (v2)
237
279
scenic-icehouse-web-3291896318-rsekj up (v2)
238
280
scenic-icehouse-web-3291896318-vokg7 up (v2)
239
-
--- background:
281
+
--- background (started): 1
240
282
scenic-icehouse-background-3291896318-yf8kh up (v2)
0 commit comments