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
The batch client takes a yaml configuration file that specifies the on-prem container endpoints. The following example can be written to `/mnt/my_nfs/config.yaml`, which is used in the examples below.
46
46
47
+
47
48
```yaml
48
-
MyContainer1:
49
-
concurrency: 5
50
-
host: 192.168.0.100
51
-
port: 5000
52
-
rtf: 3
53
-
MyContainer2:
54
-
concurrency: 5
55
-
host: BatchVM0.corp.redmond.microsoft.com
56
-
port: 5000
57
-
rtf: 2
58
-
MyContainer3:
59
-
concurrency: 10
60
-
host: localhost
61
-
port: 6001
62
-
rtf: 4
49
+
MyContainer1:
50
+
concurrency: 5
51
+
host: 192.168.0.100
52
+
port: 5000
53
+
rtf: 3
54
+
MyContainer2:
55
+
concurrency: 5
56
+
host: BatchVM0.corp.redmond.microsoft.com
57
+
port: 5000
58
+
rtf: 2
59
+
MyContainer3:
60
+
concurrency: 10
61
+
host: localhost
62
+
port: 6001
63
+
rtf: 4
63
64
```
64
65
65
66
This yaml example specifies three speech containers on three hosts. The first host is specified by a IPv4 address, the second is running on the same VM as the batch-client, and the third container is specified by the DNS hostname of another VM. The `concurrency` value specifies the maximum concurrent file transcriptions that can run on the same container. The `rtf` (Real-Time Factor) value is optional, and can be used to tune performance.
66
-
67
67
The batch client can dynamically detect if an endpoint becomes unavailable (for example, due to a container restart or networking issue), and when it becomes available again. Transcription requests will not be sent to containers that are unavailable, and the client will continue using other available containers. You can add, remove, or edit endpoints at any time without interrupting the progress of your batch.
68
68
69
69
70
+
70
71
## Run the batch processing container
71
72
72
73
> [!NOTE]
@@ -76,20 +77,23 @@ The batch client can dynamically detect if an endpoint becomes unavailable (for
76
77
77
78
Use the Docker `run` command to start the container. This will start an interactive shell inside the container.
78
79
80
+
79
81
```Docker
80
-
docker run --rm -ti-v /mnt/my_nfs:/my_nfs--entrypoint/bin/bash/mnt/my_nfs:/my_nfsdocker.io/batchkit/speech-batch-kit:latest
82
+
docker run --rm -ti-v /mnt/my_nfs:/my_nfs--entrypoint/bin/bash/mnt/my_nfs:/my_nfsdocker.io/batchkit/speech-batch-kit:latest
0 commit comments