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: serverless-fleets/README.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ A fleet consists of a collection of worker nodes that automatically scale up or
46
46
Like applications, jobs, and functions, fleets run within a Code Engine project. A project is a grouping of Code Engine resources within a specific IBM Cloud region. Projects are used to organize resources and manage access to entities such as configmaps, secrets, and persistent data stores.
47
47
48
48
49
-
## Architecture
49
+
## Architecture
50
50
51
51
The architecture used in this tutorial looks as follows.
52
52
@@ -75,7 +75,7 @@ The tutorial has been tested on a MacOS and Ubuntu24 client machine with the fol
75
75
76
76
Clone this repository
77
77
```
78
-
git clone https://github.com/IBM/CodeEngine.git
78
+
git clone https://github.com/IBM/CodeEngine.git
79
79
```
80
80
81
81
Switch to the `serverless-fleets` directory, which will be the root directory for all steps of this tutorial
@@ -295,7 +295,7 @@ Run a serverless fleet to process 100 tasks where each tasks gets 1 CPU and 2 GB
295
295
</details>
296
296
<br>
297
297
298
-
In the fleet details you will see 5 workers being provisined. The number of workers is determined by the profile, cpu/memory and number of parallel tasks.
298
+
In the fleet details you will see 5 workers being provisined. The number of workers is determined by the profile, cpu/memory and number of parallel tasks.
299
299
300
300
```
301
301
ibmcloud ce fleet get --id <id>
@@ -413,7 +413,7 @@ The 6 tasks are submitted using the `tasks-from-local-file` option using the [wo
413
413
414
414

415
415
416
-
The example mounts the [Persistant Data Stores](https://cloud.ibm.com/docs/codeengine?topic=codeengine-persistent-data-store) (PDS) to the container using the `--mount-data-store MOUNT_DIRECTORY=STORAGE_NAME:[SUBPATH]`, where
416
+
The example mounts the [Persistant Data Stores](https://cloud.ibm.com/docs/codeengine?topic=codeengine-persistent-data-store) (PDS) to the container using the `--mount-data-store MOUNT_DIRECTORY=STORAGE_NAME:[SUBPATH]`, where
417
417
-`MOUNT_DIRECTORY` - is the directory within the container
418
418
-`STORAGE_NAME` - is the name of the PDS
419
419
-`SUBPATH` - is the prefix within the COS bucket to mount.
@@ -434,10 +434,10 @@ Upload the .txt files from the local data directory to Cloud Object Storage
434
434
435
435
#### Step 2 - Run the fleet
436
436
437
-
Launch the fleet to perform `wc` on each of the novels which defines the tasks from [wordcount_commands.jsonl](./wordcount_commands.jsonl) and mounts the input and output data stores.
437
+
Launch the fleet to perform `wc` on each of the novels which defines the tasks from [wordcount_commands.jsonl](./wordcount_commands.jsonl) and mounts the input and output data stores.
438
438
```
439
439
./run_wordcount
440
-
```
440
+
```
441
441
442
442
Confirm that you uploaded the files with `#? 1`
443
443
@@ -506,7 +506,7 @@ Download the results from the output COS bucket to `./data/output`
506
506
507
507
```
508
508
./download
509
-
````
509
+
````
510
510
511
511
512
512
🚀 The example was successful, if you can tell the number of words of the "Alice in Wonderland" novel 🚀
@@ -555,6 +555,16 @@ An IBM Cloud Logs instance is being setup and enabled by default during the auto
555
555
556
556

557
557
558
+

559
+
560
+
#### Using helper scripts
561
+
562
+
If you want to quickly iterate you may use the helper script `fleet-logs` in order to display fleet logs directly in your terminal. The scripts uses a `LOGS_URL` env variable targetting your ICL endpoint, or if unset will try to find that ICL endpoint of your ICL instance. Additionally, you may specify `--fleet-id <fleet-id>`, `--since <duration>`, `--tier <search-tier>` and `--output <output-format>` to parameterize your query. Available values are directly taken from `ibmcloud logs query --help`.
563
+
564
+
```
565
+
./fleet-logs --fleet-id <fleet-id>
566
+
```
567
+
558
568
### Cleanup the Environment
559
569
560
570
To clean up all IBM Cloud resources, that have been created as part of the provided script, run:
0 commit comments