Skip to content

Commit d1f9d95

Browse files
authored
Merge pull request #63 from kube-HPC/pipeline_versioning
Pipeline versioning
2 parents 8149392 + defbb92 commit d1f9d95

15 files changed

+88
-65
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"private": true,
55
"version": "2.8.12",
66
"scripts": {
7-
"start": "rm -rf build && babel-node resources/server.js",
8-
"build": "rm -rf build && babel-node resources/build.js",
7+
"start": ". $HOME/.nvm/nvm.sh && nvm use 14.21.3 && npm run start:internal",
8+
"start:internal": "rm -rf build && babel-node resources/server.js", "build": "rm -rf build && babel-node resources/build.js",
99
"watch": "rm -rf build && babel-node resources/watch.js",
1010
"docker": "rm -rf build && ./dockerfile/build.sh site",
1111
"test": "npm run build"

site/learn/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sublinks: Restful, Cli
88
next: /learn/algorithms/
99
---
1010

11-
Hkube support two types of APIs, Restful and Cli
11+
HKube support two types of APIs, Restful and Cli
1212

1313
### Restful API
1414

site/learn/Algorithms.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ permalink: /learn/algorithms/
88
next: /learn/codeapi/
99
---
1010

11-
There are two ways to integrate your algorithm into Hkube:
11+
There are two ways to integrate your algorithm into HKube:
1212
1) No code involves, no WebSocket and no Docker.
1313
2) Involves code writing, work with WebSocket and Docker.
1414

1515
## How does it works?
1616

17-
Integrating algorithms into Hkube require 3 steps:
18-
1) Implement connectivity with Hkube using WebSocket.
17+
Integrating algorithms into HKube require 3 steps:
18+
1) Implement connectivity with HKube using WebSocket.
1919
2) Build the algorithm image and push it to Docker registry.
20-
3) Add the algorithm to Hkube.
20+
3) Add the algorithm to HKube.
2121

22-
We can do these first two steps for you, so you won't have to deal with WebSocket and Docker. The algorithm (your code) needs a way to communicate with Hkube (receive input, report results and errors)
23-
Hkube communicates with algorithms via WebSocket using their full-duplex communication support.
24-
All messages between Hkube and algorithm are in JSON format.
22+
We can do these first two steps for you, so you won't have to deal with WebSocket and Docker. The algorithm (your code) needs a way to communicate with HKube (receive input, report results and errors)
23+
HKube communicates with algorithms via WebSocket using their full-duplex communication support.
24+
All messages between HKube and algorithm are in JSON format.
2525

2626
## The easy way
2727

@@ -85,10 +85,10 @@ You can do the same using our [API](http://petstore.swagger.io/?url=https://raw.
8585
- Use WebSocket.
8686
- Use Docker.
8787

88-
## Events From Hkube to Algorithm
88+
## Events From HKube to Algorithm
8989
---
9090

91-
These events are sent from Hkube to your algorithm.
91+
These events are sent from HKube to your algorithm.
9292

9393
* [Initialize](#event-initialize)
9494
* [Start](#event-start)
@@ -220,10 +220,10 @@ Event to inform algorithm that sub pipeline has stopped
220220
* The "reason" property holds the reason for stopping the sub pipeline.
221221

222222

223-
## Events From Algorithm to Hkube
223+
## Events From Algorithm to HKube
224224
---
225225

226-
These events are sent from algorithm to Hkube.
226+
These events are sent from algorithm to HKube.
227227

228228
* [initialized](#event-initialized)
229229
* [started](#event-started)
@@ -441,8 +441,8 @@ To finish the last opened tracer span, use this event:
441441
## Implement
442442
---
443443

444-
Hkube communicates with your algorithm via WebSocket (native WebSocket or socketio).
445-
This tutorial explains how to create a websocket client that works with Hkube.
444+
HKube communicates with your algorithm via WebSocket (native WebSocket or socketio).
445+
This tutorial explains how to create a websocket client that works with HKube.
446446
You can implement the websocket client in any language. (PR are welcomed)
447447

448448
* [Connect](#connect)
@@ -464,7 +464,7 @@ The first thing your algorithm should do is create a websocket client that liste
464464

465465
## Handle Events
466466

467-
Here we are registering to events from Hkube.
467+
Here we are registering to events from HKube.
468468
Each event has a specific handler, as described below.
469469

470470
```hkube-tabs
@@ -473,7 +473,7 @@ Each event has a specific handler, as described below.
473473

474474
## initialize
475475

476-
The initialize event is the first event that Hkube sends to your algorithm.
476+
The initialize event is the first event that HKube sends to your algorithm.
477477
The payload of this event includes the pipeline data and the input for your algorithm.
478478
You need to store the input in a local variable for later use.
479479
> same input as written in the [descriptor](../learn/input/)
@@ -484,8 +484,8 @@ You need to store the input in a local variable for later use.
484484

485485
## start
486486

487-
The start event is the second event that Hkube sends to your algorithm.
488-
As you can see, at the first step of this handler you need to tell Hkube that your algorithm has started.
487+
The start event is the second event that HKube sends to your algorithm.
488+
As you can see, at the first step of this handler you need to tell HKube that your algorithm has started.
489489
Then you let the algorithm do it's work and finally you send the done event with the algorithm result.
490490

491491
```hkube-tabs
@@ -494,7 +494,7 @@ Then you let the algorithm do it's work and finally you send the done event with
494494

495495
## stop
496496

497-
Hkube will send this event to your algorithm only if stop request was made by Hkube users.
497+
HKube will send this event to your algorithm only if stop request was made by HKube users.
498498

499499
```hkube-tabs
500500
# { "hkube": true, "schema": "handle-messages-stop" }
@@ -510,15 +510,15 @@ Web Sockets are not auto reconnect, so it's important that you will handle conne
510510

511511
## Handle Errors
512512

513-
It's highly recommended that you will catch any error in your algorithm and send it to Hkube.
513+
It's highly recommended that you will catch any error in your algorithm and send it to HKube.
514514

515515
```hkube-tabs
516516
# { "hkube": true, "schema": "handle-errors" }
517517
```
518518

519519
## Send Event
520520

521-
This is a simple handler for send response back to Hkube.
521+
This is a simple handler for send response back to HKube.
522522

523523
```hkube-tabs
524524
# { "hkube": true, "schema": "send-event" }
@@ -527,4 +527,4 @@ This is a simple handler for send response back to Hkube.
527527
## Monitoring Metrics
528528
Algorithms using Tensorflow can generate metrics for a Tenosrboard view. Later upon request, a Tensorboard webserver will start, serving a dashboard comparing different runs of the algorithm.
529529
To allow hkube to display your algorithms Tesorboard metrics: In the algorithm code, write your Tensorboard metrics to a folder path set as environment variable ALGO_METRICS_DIR value.
530-
To run Tesorboard: In Hkube spec find 'board' api to start a tensorboard web server, visualizing the tensor metrics.
530+
To run Tesorboard: In HKube spec find 'board' api to start a tensorboard web server, visualizing the tensor metrics.

site/learn/Caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ next: /learn/debug/
99
---
1010

1111
## Introduction
12-
Hkube pipeline execution can be long and complex
12+
HKube pipeline execution can be long and complex
1313

14-
Hkube Caching allows you to run job from a specific node and getting the data of the predecessors from caching of the previous run, saving time and resources enable you to monitor or debug the relevant Node without the need to wait for previous prosses to complete
14+
HKube Caching allows you to run job from a specific node and getting the data of the predecessors from caching of the previous run, saving time and resources enable you to monitor or debug the relevant Node without the need to wait for previous prosses to complete
1515

1616
**Note: the Caching is only relevant to the batch pipeline**
1717

site/learn/Debug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permalink: /learn/debug/
88
next: /learn/tensorboard/
99
---
1010
## Introduction
11-
Hkube enable debugging algorithm on your local IDE as part of a pipeline executed on the cluster
11+
HKube enable debugging algorithm on your local IDE as part of a pipeline executed on the cluster
1212

1313
## Use Cases
1414
After executing the following job you suspect that the "yellow" node does not calculate its output properly and you wish to debug it in your local IDE

site/learn/Execution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ next: /learn/streaming/
77
sublinks: Flow Input, Reference, Batch, Batch Reference, Wait Any, Output
88
---
99

10-
Hkube allow special signs in the nodes input that designed to define the pipeline execution flow.
10+
HKube allow special signs in the nodes input that designed to define the pipeline execution flow.
1111

1212
- (@) - [Reference](#reference)
1313
- (#) - [Batch](#batch)

site/learn/InstallHkube.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Install Hkube
3-
sidebarTitle: Install Hkube
2+
title: Install HKube
3+
sidebarTitle: Install HKube
44
layout: ../_core/DocsLayout
55
category: Learn
66
permalink: /learn/install/
@@ -10,13 +10,13 @@ next: /learn/installCLI/
1010

1111
### Prerequisites
1212
---
13-
Hkube requires a working installation of kubernetes.
13+
HKube requires a working installation of kubernetes.
1414
There are many options for local k8s installations. e.g [Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/) or [microk8s](https://microk8s.io/).
1515

16-
Hkube is installed using helm. Both helm 2 and the newer [helm 3](https://helm.sh/docs/intro/install/) should work.
16+
HKube is installed using helm. Both helm 2 and the newer [helm 3](https://helm.sh/docs/intro/install/) should work.
1717

1818
> Make sure kubectl is configured to your cluster.
19-
> In order to collect algorithm logs, and create builds, **Hkube** requires that certain pods will run in privileged security permissions. Consult your kubernetes installation to see how to do that.
19+
> In order to collect algorithm logs, and create builds, **HKube** requires that certain pods will run in privileged security permissions. Consult your kubernetes installation to see how to do that.
2020
2121
These instructions assume the use [Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/) and [helm 3](https://helm.sh/docs/intro/install/)
2222

site/learn/InstallHkubeCLI.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Install Hkube CLI
3-
sidebarTitle: Install Hkube CLI
2+
title: Install HKube CLI
3+
sidebarTitle: Install HKube CLI
44
layout: ../_core/DocsLayout
55
category: Learn
66
permalink: /learn/installCLI/
@@ -9,7 +9,7 @@ next: /learn/api/
99
---
1010

1111
## Overview
12-
`hkubectl` is the Hkube command-line tool used for managing and interacting with pipelines, algorithms, and configurations in your Kubernetes cluster.
12+
`hkubectl` is the HKube command-line tool used for managing and interacting with pipelines, algorithms, and configurations in your Kubernetes cluster.
1313
It supports various commands to streamline the development and deployment of workflows.
1414

1515
---
@@ -42,8 +42,8 @@ export os="linux" # or macos
4242

4343
---
4444

45-
### Step 2: Configure Hkube
46-
1. **Set the Hkube API endpoint:**
45+
### Step 2: Configure HKube
46+
1. **Set the HKube API endpoint:**
4747
```bash
4848
hkubectl config set endpoint ${KUBERNETES-MASTER-IP}
4949
```
@@ -59,7 +59,7 @@ kubectl get nodes
5959
---
6060

6161
> **Note:**
62-
> Hkube requires certain pods to run with privileged security permissions.
62+
> HKube requires certain pods to run with privileged security permissions.
6363
> Consult your Kubernetes installation documentation for guidance.
6464
6565
<script>

site/learn/IntroductionV2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Hkube 101
3-
sidebarTitle: Hkube 101
2+
title: HKube 101
3+
sidebarTitle: HKube 101
44
layout: ../_core/DocsLayout
55
category: Learn
66
permalink: /learn/
@@ -40,7 +40,7 @@ next: /learn/advancedPipeline/
4040
- **Creating your first Algorithm**
4141

4242
- Currently, we support Javascript, Python and Java **autobuild**.
43-
- Your algorithm gets it's inputs from Hkube the following way:
43+
- Your algorithm gets it's inputs from HKube the following way:
4444

4545
>Java example - see [Documentation](https://raw.githubusercontent.com/kube-HPC/java-wrapper.hkube/master/algorithm-example/src/main/resources/instructions.txt)
4646

site/learn/Pipelines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sublinks: Raw, Stored
77
next: /learn/nodes/
88
---
99

10-
The basic concept behind the Hkube pipeline is [DAG](https://en.wikipedia.org/wiki/Directed_acyclic_graph)
10+
The basic concept behind the HKube pipeline is [DAG](https://en.wikipedia.org/wiki/Directed_acyclic_graph)
1111
Directed Acyclic Graph is a graph consisting of [nodes](../learn/nodes/) connected
1212
with edges that have a direction: A -> B -> C.
1313

@@ -19,8 +19,8 @@ The DAG structure allowing to:
1919
* Data flow between the nodes.
2020
* Parallel and batch processing.
2121

22-
Hkube store and execute pipelines using Restful API.
23-
Hkube support three types of pipeline executions: Raw, Stored and Node.
22+
HKube store and execute pipelines using Restful API.
23+
HKube support three types of pipeline executions: Raw, Stored and Node.
2424

2525
### Raw
2626

0 commit comments

Comments
 (0)