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: site/learn/Algorithms.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,20 @@ permalink: /learn/algorithms/
8
8
next: /learn/codeapi/
9
9
---
10
10
11
-
There are two ways to integrate your algorithm into Hkube:
11
+
There are two ways to integrate your algorithm into HKube:
12
12
1) No code involves, no WebSocket and no Docker.
13
13
2) Involves code writing, work with WebSocket and Docker.
14
14
15
15
## How does it works?
16
16
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.
19
19
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.
21
21
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.
25
25
26
26
## The easy way
27
27
@@ -85,10 +85,10 @@ You can do the same using our [API](http://petstore.swagger.io/?url=https://raw.
85
85
- Use WebSocket.
86
86
- Use Docker.
87
87
88
-
## Events From Hkube to Algorithm
88
+
## Events From HKube to Algorithm
89
89
---
90
90
91
-
These events are sent from Hkube to your algorithm.
91
+
These events are sent from HKube to your algorithm.
92
92
93
93
* [Initialize](#event-initialize)
94
94
* [Start](#event-start)
@@ -220,10 +220,10 @@ Event to inform algorithm that sub pipeline has stopped
220
220
* The "reason" property holds the reason for stopping the sub pipeline.
221
221
222
222
223
-
## Events From Algorithm to Hkube
223
+
## Events From Algorithm to HKube
224
224
---
225
225
226
-
These events are sent from algorithm to Hkube.
226
+
These events are sent from algorithm to HKube.
227
227
228
228
* [initialized](#event-initialized)
229
229
* [started](#event-started)
@@ -441,8 +441,8 @@ To finish the last opened tracer span, use this event:
441
441
## Implement
442
442
---
443
443
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.
446
446
You can implement the websocket client in any language. (PR are welcomed)
447
447
448
448
* [Connect](#connect)
@@ -464,7 +464,7 @@ The first thing your algorithm should do is create a websocket client that liste
464
464
465
465
## Handle Events
466
466
467
-
Here we are registering to events from Hkube.
467
+
Here we are registering to events from HKube.
468
468
Each event has a specific handler, as described below.
469
469
470
470
```hkube-tabs
@@ -473,7 +473,7 @@ Each event has a specific handler, as described below.
473
473
474
474
## initialize
475
475
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.
477
477
The payload of this event includes the pipeline data and the input for your algorithm.
478
478
You need to store the input in a local variable for later use.
479
479
> 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.
484
484
485
485
## start
486
486
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.
489
489
Then you let the algorithm do it's work and finally you send the done event with the algorithm result.
490
490
491
491
```hkube-tabs
@@ -494,7 +494,7 @@ Then you let the algorithm do it's work and finally you send the done event with
494
494
495
495
## stop
496
496
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.
@@ -510,15 +510,15 @@ Web Sockets are not auto reconnect, so it's important that you will handle conne
510
510
511
511
## Handle Errors
512
512
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.
514
514
515
515
```hkube-tabs
516
516
# { "hkube": true, "schema": "handle-errors" }
517
517
```
518
518
519
519
## Send Event
520
520
521
-
This is a simple handler for send response back to Hkube.
521
+
This is a simple handler for send response back to HKube.
522
522
523
523
```hkube-tabs
524
524
# { "hkube": true, "schema": "send-event" }
@@ -527,4 +527,4 @@ This is a simple handler for send response back to Hkube.
527
527
## Monitoring Metrics
528
528
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.
529
529
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.
Copy file name to clipboardExpand all lines: site/learn/Caching.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ next: /learn/debug/
9
9
---
10
10
11
11
## Introduction
12
-
Hkube pipeline execution can be long and complex
12
+
HKube pipeline execution can be long and complex
13
13
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
15
15
16
16
**Note: the Caching is only relevant to the batch pipeline**
Copy file name to clipboardExpand all lines: site/learn/InstallHkube.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Install Hkube
3
-
sidebarTitle: Install Hkube
2
+
title: Install HKube
3
+
sidebarTitle: Install HKube
4
4
layout: ../_core/DocsLayout
5
5
category: Learn
6
6
permalink: /learn/install/
@@ -10,13 +10,13 @@ next: /learn/installCLI/
10
10
11
11
### Prerequisites
12
12
---
13
-
Hkube requires a working installation of kubernetes.
13
+
HKube requires a working installation of kubernetes.
14
14
There are many options for local k8s installations. e.g [Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/) or [microk8s](https://microk8s.io/).
15
15
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.
17
17
18
18
> 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.
20
20
21
21
These instructions assume the use [Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/) and [helm 3](https://helm.sh/docs/intro/install/)
Copy file name to clipboardExpand all lines: site/learn/IntroductionV2.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Hkube 101
3
-
sidebarTitle: Hkube 101
2
+
title: HKube 101
3
+
sidebarTitle: HKube 101
4
4
layout: ../_core/DocsLayout
5
5
category: Learn
6
6
permalink: /learn/
@@ -40,7 +40,7 @@ next: /learn/advancedPipeline/
40
40
-**Creating your first Algorithm**
41
41
42
42
- 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:
44
44
45
45
>Java example - see [Documentation](https://raw.githubusercontent.com/kube-HPC/java-wrapper.hkube/master/algorithm-example/src/main/resources/instructions.txt)
Copy file name to clipboardExpand all lines: site/learn/Tensorboard.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,12 @@ permalink: /learn/tensorboard/
8
8
next: /learn/triggers/
9
9
---
10
10
## Introduction
11
-
Hkube allows to view data generated by tensorflow of users algorithm in Tensorboard UI.
11
+
HKube allows to view data generated by tensorflow of users algorithm in Tensorboard UI.
12
12
13
13
## Config
14
14
15
15
#### logdir
16
-
An algorithm using tensorflow generates tensorboard log data. In the algorithm code when creating Tensorboard object a logDir parameter is passed. For integration with Hkube the logDir value passed, must first be obtained from the environment variable : ALGO_METRICS_DIR.
16
+
An algorithm using tensorflow generates tensorboard log data. In the algorithm code when creating Tensorboard object a logDir parameter is passed. For integration with HKube the logDir value passed, must first be obtained from the environment variable : ALGO_METRICS_DIR.
0 commit comments