-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2d7c24
commit 993e72a
Showing
3 changed files
with
168 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
providers/build-a-cloud-provider/shared-memory-shm-enablement.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# Shared Memory (SHM) Enablement | ||
|
||
## Update Provider Configuration File | ||
|
||
Providers must be updated with attributes in order to bid on the SHM deplloyments. | ||
|
||
> _**NOTE**_ - in the Akash Provider build documentation a `provider.yaml` file was created and which stores provider attribute/other settings. In this section we will update that `provider.yaml` file with SHM related attributes. The remainder of the pre-existing file should be left unchanged. | ||
### Access Provider Configuration File | ||
|
||
* Steps included in this code block create the necessary `provider.yaml` file in the expected directory | ||
|
||
``` | ||
cd ~ | ||
cd provider | ||
vim provider.yaml | ||
``` | ||
|
||
### **Update the Provider YAML File With SHM Attribute** | ||
|
||
* When the `provider.yaml` file update is complete look like the following example. | ||
|
||
``` | ||
- key: capabilities/storage/3/class | ||
value: ram | ||
- key: capabilities/storage/3/persistent | ||
value: false | ||
``` | ||
|
||
#### Example Provider Config File | ||
|
||
``` | ||
--- | ||
from: "$ACCOUNT_ADDRESS" | ||
key: "$(cat ~/key.pem | openssl base64 -A)" | ||
keysecret: "$(echo $KEY_PASSWORD | openssl base64 -A)" | ||
domain: "$DOMAIN" | ||
node: "$AKASH_NODE" | ||
withdrawalperiod: 12h | ||
attributes: | ||
- key: host | ||
value: akash | ||
- key: tier | ||
value: community | ||
- key: capabilities/storage/3/class | ||
value: ram | ||
- key: capabilities/storage/3/persistent | ||
value: false | ||
``` | ||
|
||
## Update Provider Via Helm | ||
|
||
``` | ||
helm upgrade --install akash-provider akash/provider -n akash-services -f provider.yaml \ | ||
--set bidpricescript="$(cat /root/provider/price_script_generic.sh | openssl base64 -A)" | ||
``` | ||
|
||
## Verify Health of Akash Provider | ||
|
||
Use the following command to verify the health of the Akash Provider and Hostname Operator pods | ||
|
||
``` | ||
kubectl get pods -n akash-services | ||
``` | ||
|
||
#### Example/Expected Output | ||
|
||
``` | ||
root@node1:~/provider# kubectl get pods -n akash-services | ||
NAME READY STATUS RESTARTS AGE | ||
akash-hostname-operator-5c59757fcc-kt7dl 1/1 Running 0 17s | ||
akash-provider-0 1/1 Running 0 59s | ||
``` | ||
|
||
## Verify Provider Attributes On Chain | ||
|
||
* In this step we ensure that your updated Akash Provider Attributes have been updated on the blockchain. Ensure that the GPU model related attributes are now in place via this step. | ||
|
||
> _**NOTE**_ - conduct this verification from your Kubernetes control plane node | ||
``` | ||
# Ensure that a RPC node environment variable is present for query | ||
export AKASH_NODE=https://rpc.akashnet.net:443 | ||
# Replace the provider address with your own value | ||
provider-services query provider get <provider-address> | ||
``` | ||
|
||
#### Example/Expected Output | ||
|
||
<pre><code>provider-services query provider get akash1mtnuc449l0mckz4cevs835qg72nvqwlul5wzyf | ||
<strong> | ||
</strong><strong>attributes: | ||
</strong>- key: region | ||
value: us-central | ||
- key: host | ||
value: akash | ||
- key: tier | ||
value: community | ||
- key: organization | ||
value: akash test provider | ||
- key: capabilities/storage/3/class | ||
value: ram | ||
- key: capabilities/storage/3/persistent | ||
value: false | ||
host_uri: https://provider.akashtestprovider.xyz:8443 | ||
info: | ||
email: "" | ||
website: "" | ||
owner: akash1mtnuc449l0mckz4cevs835qg72nvqwlul5wzyf | ||
</code></pre> | ||
|
||
## Verify Akash Provider Image | ||
|
||
Verify the Provider image is correct by running this command: | ||
|
||
``` | ||
kubectl -n akash-services get pod akash-provider-0 -o yaml | grep image: | uniq -c | ||
``` | ||
|
||
#### Expected/Example Output | ||
|
||
``` | ||
root@node1:~/provider# kubectl -n akash-services get pod akash-provider-0 -o yaml | grep image: | uniq -c | ||
4 image: ghcr.io/akash-network/provider:0.5.4 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters