Skip to content

Instantly share code, notes, and snippets.

@chainzero
chainzero / deploy.yml
Created November 20, 2024 14:50
mylibra test SDL
---
version: "2.0"
services:
supermario:
image: pengbai/docker-supermario
expose:
- port: 8080
as: 80
to:
@chainzero
chainzero / hungLease.txt
Created November 19, 2024 21:04
Hung and proper lease close examples
### Hung lease
```
2024-11-14 16:30:03.189 {"log":"2024-11-14T21:30:03.189109324Z stdout F I[2024-11-14|21:30:03.188] check result module=provider-cluster cmp=provider cmp=service cmp=deployment-manager lease=akash1sn93u7zp7v2guan0v69vyxqltl2rykt20tm0dk/15896007/1/1/akash1tfuvntkwt3cpxnhukdnsvvsumjnrvmvh244l3w manifest-group=akash cmp=deployment-monitor ok=true attempt=1","cluster_name":"a100-mon-obl-akash-pub","container_name":"akash-provider-0"}
2024-11-13 08:52:55.801 {"log":"2024-11-13T13:52:55.80114508Z stdout F I[2024-11-13|13:52:55.800] watchdog done module=provider-manifest cmp=provider lease=akash1qzrpzg0xapm0eewea23lp06hh4rhsp3pw7v3gk/18910932","cluster_name":"a100-mon-obl-akash-pub","container_name":"akash-provider-0"}
2024-11-13 08:52:55.801 {"log":"2024-11-13T13:52:55.801000223Z stdout F E[2024-11-13|13:52:55.800] failed closing bid module=provider-manifest cmp=provider leaseID=akash1qzrpzg0xapm0eewea23lp06h
@chainzero
chainzero / providerlogs.txt
Created November 19, 2024 02:46
Np lease close example
2024-11-15 23:06:11.434 {"log":"2024-11-16T04:06:11.434893235Z stdout F I[2024-11-16|04:06:11.434] watchdog done module=provider-manifest cmp=provider lease=akash1l2qwpsd7gsnhf832m7c6nfhah7k20lvaak2ld4/18948130","cluster_name":"a100-mon-obl-akash-pub","container_name":"akash-provider-0"}
2024-11-15 23:06:11.434 {"log":"2024-11-16T04:06:11.434765142Z stdout F E[2024-11-16|04:06:11.434] failed closing bid module=provider-manifest cmp=provider leaseID=akash1l2qwpsd7gsnhf832m7c6nfhah7k20lvaak2ld4/18948130/1/1/akash1tfuvntkwt3cpxnhukdnsvvsumjnrvmvh244l3w err=\"context canceled\"","cluster_name":"a100-mon-obl-akash-pub","container_name":"akash-provider-0"}
2024-11-15 23:06:11.434 {"log":"2024-11-16T04:06:11.434682508Z stdout F I[2024-11-16|04:06:11.434] watchdog closing bid module=provider-manifest cmp=provider leaseID=akash1l2qwpsd7gsnhf832m7c6nfhah7k20lvaak2ld4/18948130/1/1/akash1tfuvntkwt3cpxnhukdnsvvsumjnrvmvh244l3w","cluster_name
@chainzero
chainzero / testnet5bids.txt
Created November 14, 2024 19:14
bid testing on testnet 5
### Create deployment
```
akash tx deployment create deploy.yml --from $AKASH_KEY_NAME
....
confirm transaction before signing and broadcasting [y/N]: y
{"height":"258554","txhash":"76D3DA05715109BD9A93C7C9A3CDFD6029C623547B22B8510E5FFFE1D333D7D9","codespace":"","code":0,"data":"12370A352F616B6173682E6465706C6F796D656E742E763162657461342E4D73674372656174654465706C6F796D656E74526573706F6E7365","raw_log":"[{\"msg_index\":0,\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/akash.deployment.v1beta4.MsgCreateDeployment\"},{\"key\":\"sender\",\"value\":\"akash1j9nvud90aq575fs7y5c27zttvjek5ctgvwlg7h\"},{\"key\":\"module\",\"value\":\"deployment\"}]},{\"type\":\"akash.deployment.v1.EventDeploymentCreated\",\"attributes\":[{\"key\":\"hash\",\"value\":\"\\\"ZORpdTqmvTDIbJjnEP5Vo9MJ8uVzbYp6mQWJAeD/n8I=\\\"\"},{\"key\":\"id\",\"value\":\"{\\\"owner\\\":\\\"akash1j9nvud90aq575fs7y5c27zttvjek5ctgvwlg7h\\\",\\\"dseq\\\":\\\"258553\\\"}\"}]}
```
### Create bid
@chainzero
chainzero / deploymentUpdate.txt
Created November 13, 2024 16:49
deployment update test on testnet-5
### Create deployment:
```
root@service-1-6584b8ff49-sfhzq:~# akash tx deployment create deploy.yml --from $AKASH_KEY_NAME
Enter keyring passphrase (attempt 1/3):
{"body":{"messages":[{"@type":"/akash.deployment.v1beta4.MsgCreateDeployment","id":{"owner":"akash1p6fulzhjcsghakuracwn20tjqmvf7zvsclf6yw","dseq":"241847"},"groups":[{"name":"westcoast","requirements":{"signed_by":{"all_of":[],"any_of":["akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"]},"attributes":[{"key":"host","value":"akash"}]},"resources":[{"resource":{"id":1,"cpu":{"units":{"val":"100"},"attributes":[]},"memory":{"quantity":{"val":"536870912"},"attributes":[]},"storage":[{"name":"default","quantity":{"val":"536870912"},"attributes":[]}],"gpu":{"units":{"val":"0"},"attributes":[]},"endpoints":[{"kind":"SHARED_HTTP","sequence_number":0}]},"count":1,"price":{"denom":"uakt","amount":"1000.000000000000000000"}}]}],"hash":"ZORpdTqmvTDIbJjnEP5Vo9MJ8uVzbYp6mQWJAeD/n8I=","deposit":{"denom":"uakt","amount":"500000"},"depositor":"akash1p6fulzhjcsghakurac
Summary of results:
Nodes with 100% Success Rate:
Endpoint https://rpc.akash.forbole.com:443 - Success Rate: 100%, Failure Rate: 0%
Endpoint https://rpc-akash.ecostake.com:443 - Success Rate: 100%, Failure Rate: 0%
Endpoint https://rpc.lavenderfive.com:443/akash - Success Rate: 100%, Failure Rate: 0%
Endpoint https://akash-rpc.polkachu.com - Success Rate: 100%, Failure Rate: 0%
Endpoint http://akash.c29r3.xyz:80/rpc - Success Rate: 100%, Failure Rate: 0%
Endpoint https://akash-rpc.kleomedes.network - Success Rate: 100%, Failure Rate: 0%
Endpoint https://akash-mainnet-rpc.cosmonautstakes.com:443 - Success Rate: 100%, Failure Rate: 0%
Endpoint https://akash-rpc.w3coins.io - Success Rate: 100%, Failure Rate: 0%
#!/bin/bash
# Define values directly in the script or read them from a configuration file
FROM="akash1dyzm6paysqh3v62syfah04dj4eu3x73ytt84c7"
DOMAIN="akashtesting.xyz"
NODE="http://rpc.akashtestnet.xyz:26657"
EMAIL="provider@example.com" # Set your actual email
WEBSITE="https://provider-website.com" # Set your actual website
ATTRIBUTES=(
"host: akash"
@chainzero
chainzero / rpcSummary.txt
Created November 4, 2024 21:40
testing of chain registry RPC endpoints
Summary of results:
Nodes with 100% Success Rate:
Endpoint https://rpc.akash.forbole.com:443 - Success Rate: 100%, Failure Rate: 0%
Endpoint https://rpc-akash.ecostake.com:443 - Success Rate: 100%, Failure Rate: 0%
Endpoint https://rpc.lavenderfive.com:443/akash - Success Rate: 100%, Failure Rate: 0%
Endpoint https://akash-rpc.polkachu.com - Success Rate: 100%, Failure Rate: 0%
Endpoint http://akash.c29r3.xyz:80/rpc - Success Rate: 100%, Failure Rate: 0%
Endpoint https://akash-rpc.kleomedes.network - Success Rate: 100%, Failure Rate: 0%
Endpoint https://rpc-akash-01.stakeflow.io - Success Rate: 100%, Failure Rate: 0%
Endpoint https://akash-mainnet-rpc.cosmonautstakes.com:443 - Success Rate: 100%, Failure Rate: 0%
@chainzero
chainzero / memtesting.txt
Created November 1, 2024 14:22
provoke oom testing
### Manifest used:
```
apiVersion: apps/v1
kind: Deployment
metadata:
name: alpine-memory-test
spec:
replicas: 1
selector:
@chainzero
chainzero / genesis.json
Created October 30, 2024 13:42
Testnet5 - colo build - 1.0.0-rc9 - 10/30/24
{
"genesis_time": "2024-10-30T13:35:15.821992972Z",
"chain_id": "testnet-5",
"initial_height": "1",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1"
},
"evidence": {