Skip to content

Commit 114e092

Browse files
authored
Merge pull request #70425 from rwike77/patch-3
Updating Hosting snippets
2 parents 4d22c18 + 14a6586 commit 114e092

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

articles/service-fabric/service-fabric-get-started-containers.md

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,12 @@ Service Fabric then uses the default repository credentials which you can specif
356356
* IsDefaultContainerRepositoryPasswordEncrypted (bool)
357357
* DefaultContainerRepositoryPasswordType (string) --- Supported starting with the 6.4 runtime
358358

359-
Here is an example of what you can add inside the `Hosting` section in the ClusterManifestTemplate.json file. For more information, see [Change Azure Service Fabric cluster settings](service-fabric-cluster-fabric-settings.md) and [Manage Azure Service Fabric application secrets](service-fabric-application-secret-management.md)
359+
Here is an example of what you can add inside the `Hosting` section in the ClusterManifestTemplate.json file. The `Hosting` section can be added at cluster creation or later in a configuration upgrade. For more information, see [Change Azure Service Fabric cluster settings](service-fabric-cluster-fabric-settings.md) and [Manage Azure Service Fabric application secrets](service-fabric-application-secret-management.md)
360360

361361
```json
362-
{
362+
"fabricSettings": [
363+
...,
364+
{
363365
"name": "Hosting",
364366
"parameters": [
365367
{
@@ -384,6 +386,7 @@ Here is an example of what you can add inside the `Hosting` section in the Clust
384386
}
385387
]
386388
},
389+
]
387390
```
388391

389392
## Configure isolation mode
@@ -616,10 +619,12 @@ NtTvlzhk11LIlae/5kjPv95r3lw6DHmV4kXLwiCNlcWPYIWBGIuspwyG+28EWSrHmN7Dt2WqEWqeNQ==
616619

617620
## Configure time interval before container is force terminated
618621

619-
You can configure a time interval for the runtime to wait before the container is removed after the service deletion (or a move to another node) has started. Configuring the time interval sends the `docker stop <time in seconds>` command to the container. For more detail, see [docker stop](https://docs.docker.com/engine/reference/commandline/stop/). The time interval to wait is specified under the `Hosting` section. The following cluster manifest snippet shows how to set the wait interval:
622+
You can configure a time interval for the runtime to wait before the container is removed after the service deletion (or a move to another node) has started. Configuring the time interval sends the `docker stop <time in seconds>` command to the container. For more detail, see [docker stop](https://docs.docker.com/engine/reference/commandline/stop/). The time interval to wait is specified under the `Hosting` section. The `Hosting` section can be added at cluster creation or later in a configuration upgrade. The following cluster manifest snippet shows how to set the wait interval:
620623

621624
```json
622-
{
625+
"fabricSettings": [
626+
...,
627+
{
623628
"name": "Hosting",
624629
"parameters": [
625630
{
@@ -628,7 +633,8 @@ You can configure a time interval for the runtime to wait before the container i
628633
},
629634
...
630635
]
631-
}
636+
}
637+
]
632638
```
633639
The default time interval is set to 10 seconds. Since this configuration is dynamic, a config only upgrade on the cluster updates the timeout.
634640

@@ -639,7 +645,9 @@ You can configure the Service Fabric cluster to remove unused container images f
639645

640646

641647
```json
642-
{
648+
"fabricSettings": [
649+
...,
650+
{
643651
"name": "Hosting",
644652
"parameters": [
645653
{
@@ -653,7 +661,8 @@ You can configure the Service Fabric cluster to remove unused container images f
653661
...
654662
}
655663
]
656-
}
664+
}
665+
]
657666
```
658667

659668
For images that shouldn't be deleted, you can specify them under the `ContainerImagesToSkip` parameter.
@@ -664,15 +673,18 @@ For images that shouldn't be deleted, you can specify them under the `ContainerI
664673
The Service Fabric runtime allocates 20 minutes to download and extract container images, which work for the majority of container images. For large images, or when the network connection is slow, it might be necessary to increase the time to wait before aborting the image download and extraction. This time out is set using the **ContainerImageDownloadTimeout** attribute in the **Hosting** section of the cluster manifest as shown in the following snippet:
665674

666675
```json
667-
{
676+
"fabricSettings": [
677+
...,
678+
{
668679
"name": "Hosting",
669680
"parameters": [
670681
{
671682
"name": "ContainerImageDownloadTimeout",
672683
"value": "1200"
673684
}
674685
]
675-
}
686+
}
687+
]
676688
```
677689

678690

@@ -693,16 +705,18 @@ With the 6.2 version of the Service Fabric runtime and greater, you can start th
693705

694706

695707
```json
696-
{
708+
"fabricSettings": [
709+
...,
710+
{
697711
"name": "Hosting",
698712
        "parameters": [
699713
          {
700714
            "name": "ContainerServiceArguments",
701715
            "value": "-H localhost:1234 -H unix:///var/run/docker.sock"
702716
          }
703717
        ]
704-
}
705-
718+
}
719+
]
706720
```
707721

708722
## Next steps

0 commit comments

Comments
 (0)