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: Docs/about/requests-and-deploys.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ To illustrate the differences between and usages of these two concepts, we will
11
11
## The `TestService` Example
12
12
13
13
### Creating a `Request`
14
-
You have a new web service called `TestService` that you want to run via Singularity. The first thing you need to do is create a `Request` for `TestService`. To create this request, you would `POST` json over http to the Singularity API ([`/api/requests`](../reference/apidocs/api-requests.md#post-apirequests)) or create a request via the new request page in the Singularity UI. Example json:
14
+
You have a new web service called `TestService` that you want to run via Singularity. The first thing you need to do is create a `Request` for `TestService`. To create this request, you would `POST` json over http to the Singularity API ([`/api/requests`](../reference/api.html)) or create a request via the new request page in the Singularity UI. Example json:
15
15
16
16
```json
17
17
{
@@ -26,7 +26,7 @@ This `Request` now holds high level information about your web service. Singular
26
26
27
27
### Creating a `Deploy`
28
28
29
-
Now you want `TestService` to actually run. To do this, you need to create a `Deploy` for the `TestService``Request`. This deploy will let Singularity know all of the information necessary to actually build and launch a task. This information includes things like the command to run, environment variables to set, the location of any artifacts to download, or the resources that should be allocated to a task. You would create this deploy by `POST`ing json to the Singularity API's deploy endpoint ([`/api/deploys`](../reference/apidocs/api-deploys.md#post-apideploys)), or creating a new deploy in the Singularity UI. Example json:
29
+
Now you want `TestService` to actually run. To do this, you need to create a `Deploy` for the `TestService``Request`. This deploy will let Singularity know all of the information necessary to actually build and launch a task. This information includes things like the command to run, environment variables to set, the location of any artifacts to download, or the resources that should be allocated to a task. You would create this deploy by `POST`ing json to the Singularity API's deploy endpoint ([`/api/deploys`](../reference/api.html)), or creating a new deploy in the Singularity UI. Example json:
30
30
31
31
```json
32
32
{
@@ -55,13 +55,13 @@ Posting this to Singularity creates a `PendingDeploy`. Singularity will then try
55
55
56
56
### A New `Deploy`
57
57
58
-
Let's say some changes were made to the `TestService` code and you want to run the new version in Singularity, maybe with a bit more memory as well. You would create a new `Deploy` json with information about the new code to run, and updated memory value and `POST` that to the Singularity API ([`/api/deploys`](../reference/apidocs/api-deploys.md#post-apideploys)), or create a new deploy in the Singularity UI.
58
+
Let's say some changes were made to the `TestService` code and you want to run the new version in Singularity, maybe with a bit more memory as well. You would create a new `Deploy` json with information about the new code to run, and updated memory value and `POST` that to the Singularity API ([`/api/deploys`](../reference/api.html)), or create a new deploy in the Singularity UI.
59
59
60
60
Singularity sees a new `Deploy` has been started and makes that the `PendingDeploy` for the `TestService``Request`. Singularity will then try to build and launch `1` new task with the configuration specified in the new `PendingDeploy` (note that the task from the previous `Deploy` is still running and it's settings are unchanged). Once the task is launched and determined to be healthy, that new `Deploy` now becomes the `ActiveDeploy` and the task from the old deploy is shut down.
61
61
62
62
### Updating the Request
63
63
64
-
Now, for example, you notice `TestService` is getting more traffic than expected and you want to run `3` instances instead of just `1`. You can `PUT` a new number of instances over http to the Singularity API ([`/api/requests/request/{requestId}/scale`](../reference/apidocs/api-requests.md#put-apirequestsrequestrequestidscale)), or click `Scale` on the Singularity UI request page and enter a new number of instances to update our number of instances. Example json:
64
+
Now, for example, you notice `TestService` is getting more traffic than expected and you want to run `3` instances instead of just `1`. You can `PUT` a new number of instances over http to the Singularity API ([`/api/requests/request/{requestId}/scale`](../reference/api.html)), or click `Scale` on the Singularity UI request page and enter a new number of instances to update our number of instances. Example json:
0 commit comments