Host your Neurai Infrastructure via the Flux Marketplace!
Flux — The Web3 Cloud
Flux’s core values and ethos center around the rise of Web 3.0 — By, and For the People. Its aim is to evoke the power of corporations and restore it to the common people. The Flux Cloud is decentralized, based on thousands of single servers from all over the world that are all connected in one operating system. Individuals are the backbone of the technology, so to speak. They provide the cloud with computational resources via home-based bare metal machines or rented servers and are incentivized by 50% of the total block reward.
To this date, the decentralized cloud of Flux is supported by over 12,000 nodes around the globe. Its total available computational resources amount to around 97,000 Cores, 260 TB of RAM, and over 7 PT (Petabytes) of SSD. It is a Web 3.0 cloud powerhouse that can be used to deploy applications in a decentralized and censor-resistant manner. There are plenty of advantages of using Flux instead of traditional Web2 infrastructure providers:
- All applications are redundant and have automatic failovers in case of any outages.
- The Flux Cloud is agnostic to code language as it uses Docker Hub containers as an on-ramp.
- The Flux Cloud automatically keeps applications up to date with the respective container.
- The Flux Cloud offers competitive pricing.
Neurai — Connecting the real world with blockchain
Neurai aims to be a platform to enable harnessing the power of AI algorithms for efficient data analytics, predictive modeling, decision making and connectivity to IoT devices using blockchain assets.
Enough introduction! Let us go ahead with the guide on how to deploy either a Neurai Fullnode or a Neurai-ElectrumX server via the Flux Marketplace in very few steps!
- We first need to head over to https://home.runonflux.io/
- Once here, we need to login using our ZelID. Available for us via Zelcore https://zelcore.io/ (Remember to use always the official links)
2.1 If you do not have an account created in Zelcore, you firstly need to download and install the app
2.2 Next (mandatory for your wallet’s safety), enable d2FA on the App section inside Zelcore.
2.3 Now you can authenticate by clicking on the fingerprint button or manually by signing the message manually on your Zelcore Wallet with the ZelID App
3. Now that you have been authenticated, head over to https://home.runonflux.io/apps/marketplace and look for the NeuraiNode or ElectrumxXNA Application — You will find it under the ‘Blockchain’ category. You will see something remarkably like this:
4. Click on “Start Launching Marketplace App.”, you get something like:
5. You can click “Next” or copy the Registration Message if you want to sign the message manually using your ZelID App, and then click “Next.”
6. Here, you can click the fingerprint button to sign the request for the application. If you have done this manually, paste the signed message from the earlier step onto your ZelID.
7. You will now see the monthly cost for your application. Click on “Register Flux App.”
8. You will be given payment information in FLUX. Payment is made through the FLUX blockchain using FLUX coins.
9. Select “Pay with Zelcore” to make the payment for the application.
10. You’re done! We now need to wait for your Neurai infrastructure to be spawned on an available node, which usually takes around 10–30 minutes
Usage of the Neurai Infrastructure
When you’re logged in with your ZelID at https://home.runonflux.io, go to the “Global Apps” menu tab on the left-hand side. From there, go to the “My Apps” tab, where you can manage and visit your Neurai deployments. Click on the arrow pointing down to see your application specifications and the IPs running it.
More importantly, you see your “Automatic Domains” which were generated by the Flux-Domain-Manager (FDM). You’ll need the first one listed there, in our case electrumxxna1691499241532.app.runonflux.io. This https endpoint is load balancing between your three Neurai-ElectrumX servers (If they are synced 100%)
→ https://electrumxxna1691499241532.app.runonflux.io/
As you can see, your Neurai application is redundant, which means it is always running on a minimum of three instances simultaneously. That means you could use each individual IP as an endpoint as well. Click on “Visit App” to get to its http endpoint. Examples:
→ http://65.21.135.142:36740/
→ http://51.89.128.144:36740/
Port Usage
Full Node
36735 = RPC
→ e.g neurainode1691499241532_36735.app.runonflux.io, http://51.89.128.144:36735/
Electrumx
36741 = No-SSL
→ e.g electrumxxna1691499241532_36741.app.runonflux.io, http://51.89.128.144:36741/
36742 = SSL
→ electrumxxna1691499241532_36742.app.runonflux.io, http://51.89.128.144:36742/
36743 = RPC port
→ e.g electrumxxna1691499241532_36743.app.runonflux.io, http://51.89.128.144:36743/
You can check the logs of the individual IPs to ensure that the Node is syncing properly.
- Visit one IP by clicking on “Visit FluxNode”
- Log in with your ZelID
- Navigate to “Apps”, “Local Apps”, “My Local Apps”
- Click “Manage”, “Manage App”, “Log File”
You should see something similar like this (The Node is syncing):
]INFO:DB:flush #7 took 0.0s. Height 192 txs: 193 (+48) assets: 0 (+0) size: 58,520 (+14,592)
wINFO:BlockProcessor:fetched new block height 194 hash 0000b062a756ecabd742743d40cd4f572e86de57274143382b29c98a96c30ccf
wINFO:BlockProcessor:fetched new block height 196 hash 0003ac4a7c2b5a70d774a5f7470423b2499fd6f7952f8e5f6432944c72ab83af
wINFO:BlockProcessor:fetched new block height 195 hash 0003669140135d1f2e70d675a13f0d7f8d4e0410f7367246b1b75e446dfa79dd
wINFO:BlockProcessor:fetched new block height 193 hash 000313d458fdaa6c35370003ecbb78ce9a9143637dbe0a53772ac5539ef33520
wINFO:BlockProcessor:fetched new block height 198 hash 00032ed6651ea9d691b55b120b90ab5529ff93f04d8af821caf00c8ea7c9f8d6
wINFO:BlockProcessor:fetched new block height 197 hash 0000f7dfbabe49449dea900446d0dd672bb3d1497283b55ae2fdca720adfda41
wINFO:BlockProcessor:fetched new block height 201 hash 000456a9a2cd0b6d77677218969bec48c087b18a29cf33c85665a6523256df18
wINFO:BlockProcessor:fetched new block height 199 hash 000044382101ca4b260a1a63796d44c0a70206503b7a3e1e3c9fabb7db57eafd
wINFO:BlockProcessor:fetched new block height 200 hash 0001c2a0165fc6056ec721fc237f990322baeadaade68288db404836e16cc77a
INFO:BlockProcessor:height 193 of 224 000313d458fdaa6c35370003ecbb78ce9a9143637dbe0a53772ac5539ef33520 2023–04–17 17:51:51 0.000MB 1 txs chain 0.000GB
wINFO:BlockProcessor:fetched new block height 202 hash 00026c2dbc2a7561475e959485753af135820be4fcbc6c26a410b2a639d9a940
wINFO:BlockProcessor:fetched new block height 204 hash
Remember, your Neurai Application is only subscribed for 22,000 Flux blocks initially, which is ~ 44,000 minutes (about 1 month). You will need to renew payment after the first month, so your Node does not get kicked off the network. We give you the choice to renew it for a longer terms after the first deployment for up to one whole year.
- Visit https://home.runonflux.io/ and log in with your ZelID
- Navigate to “Apps”, “Global Apps”, “My Apps”
- Click “Manage”, “Manage App”, “Update Specifications”
- Leave all the variables like they are, except the PERIOD field — Adjust it to your preference. Next click on “Compute Update Message”
- Sign the Message with the ZelID App and click “Update Flux App” after
- Click “Pay with Zelcore” to make the Flux Payment
- Voilà your Node has been renewed for your chosen duration
Have Fun supporting the Neurai Blockchain with decentralized infrastructure!
Learn more about Flux at www.runonflux.io
Learn more about Neurai at https://neurai.org/
Guide create by FLUX Team — Kyuubi