<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Professor Parpinsons on Medium]]></title>
        <description><![CDATA[Stories by Professor Parpinsons on Medium]]></description>
        <link>https://medium.com/@alijprof?source=rss-6158a5139960------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*effgHB39W4v4uwvPyt0Ndg.jpeg</url>
            <title>Stories by Professor Parpinsons on Medium</title>
            <link>https://medium.com/@alijprof?source=rss-6158a5139960------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:17:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alijprof/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Bridge Node Set Up: Technical Write Up— Tooling Command Line]]></title>
            <link>https://medium.com/@alijprof/bridge-node-set-up-technical-write-up-tooling-command-line-5ff7a9f1aca9?source=rss-6158a5139960------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ff7a9f1aca9</guid>
            <dc:creator><![CDATA[Professor Parpinsons]]></dc:creator>
            <pubDate>Mon, 15 May 2023 21:30:41 GMT</pubDate>
            <atom:updated>2023-05-15T22:34:31.238Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bridge Node Set Up: Technical Write Up—Technical Tooling Command Line Solution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IIQ3dPyGoEAFJCvy.jpg" /></figure><ul><li>Github — <a href="https://github.com/alijprof">https://github.com/alijprof</a></li><li>Discord — Professor Parpinsons#2346</li><li>Link to solution Bridge Node solution — <a href="https://github.com/alijprof/Celestia-Tooling">https://github.com/alijprof/Celestia-Tooling</a></li><li>Link to Light Node solution — <a href="https://github.com/alijprof/Celestia-Tooling/tree/main/Light-Node">https://github.com/alijprof/Celestia-Tooling/tree/main/Light-Node</a></li></ul><p>As part of the blockspacerace bonus tasks, I have created a one command line per node tooling solution to run a full consensus node and a bridge node on one device, like was done in blockspacerace. The link to my GitHub repository and README.md can be found <a href="https://github.com/alijprof/Celestia-Tooling"><strong>here</strong></a>. I see this solution being worked on throughout the additional ‘bonus phase’ of the ITN and as a good foundation to improve on throughout Celestia Networks journey to the mainnet.</p><h3>Celestia Node Shell Scrips</h3><p>The following hardware minimum requirements apply:</p><ul><li>Memory: 8 GB RAM</li><li>CPU: 6 cores</li><li>Disk: 1 TB SSD Storage</li><li>Bandwidth: 1 Gbps for Download/1 Gbps for Upload</li></ul><h4>Consensus &amp; Bridge Node on one device</h4><p>To run a consensus node and a bridge node on the same device, follow these steps:</p><p>1. Run the consensus node shell script as the root user.<br>2. Once the consensus node script has been executed and synced, proceed to run the bridge node script as the root user.</p><p>Download the script, make it executable, and run the script using the steps below:</p><h4>Consensus Node — Shell Script</h4><p>In this shell script, it:</p><ul><li>Instals prerequisite packages</li><li>Instals Go</li><li>Instals the Celestia node</li><li>Instals Celestia App and create service file</li><li>Enables and starts the SystemD service to run automatically</li></ul><pre>wget https://raw.githubusercontent.com/alijprof/Celestia-Tooling/main/Consensus-Node.sh &amp;&amp; chmod +x Consensus-Node.sh &amp;&amp; ./Consensus-Node.sh</pre><h4>Bridge Node</h4><p>In this shell script, it:</p><ul><li>Initiating the Celestia node for bridge client</li><li>Setting up a wallet or importing an existing one</li><li>Creates a system service file for celestia-bridge</li><li>Enables and starts the SystemD service to run celestia-bridge automatically.</li></ul><pre>wget https://raw.githubusercontent.com/alijprof/Celestia-Tooling/main/Bridge-Node.sh &amp;&amp; chmod +x Bridge-Node.sh &amp;&amp; ./Bridge-Node.sh</pre><h4>Parameterisation</h4><p>Throughout my shell scripts, I have tried to parameterise as many options as possible. Parameterisation is an extremely advantageous approach when writing shell scripts that undergo frequent updates or modifications. By defining parameters, the script becomes flexible and adaptable to changes without the need for extensive code modifications. This not only enhances the script’s maintainability but also allows for easy customisation of its behaviour. With parameterisation, updates can be made by simply modifying parameter values, reducing the risk of introducing errors or breaking the script’s functionality. An example of my bride node shell parameterisation is seen below:</p><pre># Define default values for parameters<br>DEFAULT_CORE_IP=&quot;localhost&quot;<br>DEFAULT_CORE_RPC_PORT=&quot;26657&quot;<br>DEFAULT_CORE_GRPC_PORT=&quot;9090&quot;<br>DEFAULT_METRICS_TLS=&quot;false&quot;<br>DEFAULT_METRICS_ENDPOINT=&quot;otel.celestia.tools:4318&quot;<br>DEFAULT_GATEWAY_ADDR=&quot;localhost&quot;<br>DEFAULT_GATEWAY_PORT=&quot;26659&quot;<br>DEFAULT_P2P_NETWORK=&quot;blockspacerace&quot;<br><br># Parse input parameters<br>CORE_IP=${1:-$DEFAULT_CORE_IP}<br>CORE_RPC_PORT=${2:-$DEFAULT_CORE_RPC_PORT}<br>CORE_GRPC_PORT=${3:-$DEFAULT_CORE_GRPC_PORT}<br>METRICS_TLS=${4:-$DEFAULT_METRICS_TLS}<br>METRICS_ENDPOINT=${5:-$DEFAULT_METRICS_ENDPOINT}<br>GATEWAY_ADDR=${6:-$DEFAULT_GATEWAY_ADDR}<br>GATEWAY_PORT=${7:-$DEFAULT_GATEWAY_PORT}<br>P2P_NETWORK=${8:-$DEFAULT_P2P_NETWORK}</pre><p>The above paramaterisation also improves the script’s user friendliness by allowing users to provide their own parameter values without delving into the script’s internals. In summary, parameterisation in shell scripting for Celestia Network offers flexibility, maintainability, user friendliness, and script standardisation, making it an invaluable addition for Celestia Network and new users to efficiently handle updates and modifications.</p><h3>Why a tooling shell script?</h3><p>Tooling a one-line command script to run a Celestia network consensus and bridge node can greatly benefit new users by simplifying the setup process and reducing the learning curve associated with manual configuration. Here are a few reasons why such tooling would be helpful:</p><ol><li>Ease of use: New users often struggle with the complexity of setting up and configuring a network node. Having a one-line command script eliminates the need for them to understand and execute multiple individual commands. They can simply run the script, and the necessary steps will be automated, saving time and effort.</li><li>Streamlined installation: The script can automate the installation of the required dependencies, Celestia software, and other components. It ensures that all the necessary components are properly installed and configured without requiring users to manually perform each step. This minimises the risk of missing crucial steps or encountering compatibility issues.</li><li>Standardisation: By providing a predefined script, the setup process becomes standard across different users. This reduces inconsistencies and potential errors that can arise from users manually configuring nodes in their own unique ways. Standardisation promotes a consistent and reliable network setup, making it easier for users to collaborate and share their experiences.</li><li>Configuration flexibility: Despite the simplicity of a one-line command, users can still customise the setup by providing different parameters or variables. This allows users to tailor the node configuration based on their specific requirements or preferences. They can easily modify parameters such as IP addresses, ports, network options, and more without delving into complex configuration files.</li><li>Reduced learning curve: For new users, understanding the intricacies of configuring a Celestia network node can be overwhelming. By abstracting away the complexities and providing a simple command, the learning curve is significantly reduced. Users can focus on exploring the Celestia network and its capabilities rather than spending excessive time on the initial setup process. <a href="https://github.com/alijprof/Celestia-Tooling/blob/main/Light-Node/README.md"><strong>This is something that may be more invaluable to light node users, for which I also have a tooling solution that can be found here.</strong></a></li></ol><p>Overall, tooling a one-line command script for running a Celestia network consensus and bridge node empowers new users to quickly and effortlessly set up their nodes, enabling them to actively participate in the network and leverage its functionalities. It enhances accessibility, standardisation, and ease of use while minimising the potential for errors and configuration inconsistencies.</p><h3>How could my shell scripts be improved?</h3><p>The shell script is open-sourced, so anyone, at any moment, can make improvements to it. Below are three examples of how I would further improve my shell script with additional time and effort:</p><ol><li>Add error handling: Include error handling mechanisms to gracefully handle failures during command execution, such as checking the return codes of commands and displaying meaningful error messages. For this, I currently only have the fact that there is an error. More could be coded in to help users know how to fix the errors.</li><li>Validate user input: Validate user input to ensure it meets the expected criteria. For example, when prompting for the wallet name, you could enforce specific rules or restrictions on the input. This should also be done for the default parameterisations in case a user wants to adapt them.</li><li>Use a configuration file: Instead of relying solely on command-line parameters, you could use a configuration file to store and read the required settings. This would allow for easier customisation and separation of concerns.</li></ol><h3>Conclusion</h3><p>Here concludes my technical write-up for my consensus and bridge node setup. I tried to stray away from a generic repeat of the Cleestia Network documentation by creating a tooling solution for what was required in the blockspacerace ITN. The tool I created, which I am happy with and have run on a clean and dedicated server, accurately executed the task at hand. There are improvements to be made to this tooling solution, which I hope to further during the bonus phase of the ITN, which now ends on June 12th, 2023.</p><p>Should you have any further questions or queries please do not hesitate to get in contact with me through discord or relevant platforms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ff7a9f1aca9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node Hardware Analysis Using Prometheus, Node Exporter and Grafana Dashboard.]]></title>
            <link>https://medium.com/@alijprof/node-hardware-analysis-using-prometheus-node-exporter-and-grafana-dashboard-49617860ff7e?source=rss-6158a5139960------2</link>
            <guid isPermaLink="false">https://medium.com/p/49617860ff7e</guid>
            <dc:creator><![CDATA[Professor Parpinsons]]></dc:creator>
            <pubDate>Sat, 13 May 2023 15:11:55 GMT</pubDate>
            <atom:updated>2023-05-15T22:44:23.055Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bridge Node Hardware Analysis Using Prometheus, Node Exporter and Grafana Dashboard</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nqdzUSUWa_h791Oz.jpg" /></figure><ul><li>Github — <a href="https://github.com/alijprof">https://github.com/alijprof</a></li><li>Discord — Professor Parpinsons#2346</li><li>VPS Provider — <a href="https://www.ovhcloud.com/en-gb/">https://www.ovhcloud.com/en-gb/</a></li><li>Alternative VPS Provider — <a href="https://www.digitalocean.com/">https://www.digitalocean.com</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Pm7AJCU-DxZLyv_Vkrojw.png" /><figcaption>Hardware Used on My VPS(s)</figcaption></figure><p>If you do not wish to know the set up skip to <a href="#bcbc"><strong>Node analysis</strong></a></p><h3>Introduction</h3><p>The following article will explain how you can analyse the hardware of your VPS or local machine for the Celestia ITN tasks. <strong>Perform analysis of your node.</strong> It will also cover any interesting analytics that have been picked up from monitoring my VPS, which is running both a bridge and consensus node.</p><p>The analysis was done by hosting a separate VPS that runs Prometheus and Node Exporter and linking it to my VPS running my Celestia Nodes. This could also have been run on the same VPS that my Celestia nodes were running on, but to get a more accurate analysis of just the nodes performance, a dedicated server was set up to scrape the ITN VPS hardware analysis.</p><h3>Analytical tools used</h3><p>As mentioned above, two VPS were rented, and the software on each is described below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqNvYQTW8T62SZcKVO64CA.png" /><figcaption>Software on Each VPS</figcaption></figure><p>Grafana is a popular open-source data visualisation tool used to create custom dashboards that display real-time metrics from various data sources. Prometheus is a monitoring system and time-series database that collects and stores metrics from targets such as servers, applications, and services. Node Exporter is a Prometheus exporter that collects and exposes system-level metrics from Linux and Unix systems.</p><p>By using Prometheus and Node Exporter together, we can scrape information from our Celestia ITN VPS and store it in Prometheus’s time-series database. We can then use Grafana to visualise these metrics in real-time and create custom dashboards that provide insight into our Celestia ITN VPS hardware performance.</p><h3>Openning Ports</h3><p>The following ports should be run on the Prometheus VPS:</p><pre>sudo ufw allow ssh <br>sudo ufw allow 9090<br>sudo ufw allow 9100<br>sudo ufw allow 3000<br>sudo ufw enable</pre><p>The following ports should be run on the Celestia ITN VPS:</p><pre>sudo ufw allow ssh <br>sudo ufw allow 9100<br>sudo ufw enable</pre><h3>Running Prometheus and Grafana on a dedicated server</h3><p>For the following, work as the root user on your dedicated Prometheus server. Command sudo -i</p><ol><li>Download Prometheus and Extract (Promtool and Prometheus)</li></ol><pre>wget [&lt;https://github.com/prometheus/prometheus/releases/download/v2.33.0/prometheus-2.33.0.linux-amd64.tar.gz&gt;](&lt;https://github.com/prometheus/prometheus/releases/download/v2.33.0/prometheus-2.33.0.linux-amd64.tar.gz&gt;)</pre><pre>tar xvf prometheus-2.33.0.linux-amd64.tar.gz</pre><p>2. Move the Prometheus binaries to /usr/local/bin</p><pre>sudo cp prometheus-2.33.0.linux-amd64/prometheus /usr/local/bin/</pre><pre>sudo cp prometheus-2.33.0.linux-amd64/promtool /usr/local/bin/</pre><p>3. grant permissions (assumes user is ubuntu)</p><pre>sudo chown ubuntu:ubuntu /usr/local/bin/prometheus</pre><pre>sudo chown ubuntu:ubuntu /usr/local/bin/promtool</pre><p>4. Check the installed Prometheus version:</p><pre>prometheus --version</pre><p><em>Example output from the above command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jB7ZfrtMmSf4-rfyIOUnKQ.png" /></figure><p>5. Check the installed Promtool version:</p><pre>promtool --version</pre><p><em>Example output from the above command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BSwZf-IYWZMZLc3tDEcFA.png" /></figure><p>6. Download and Extract Node exporter</p><p>The following 6, 7, and 8 steps should be done on both the Prometheus VPS and the Celestia ITN VPS.</p><pre>wget [&lt;https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz&gt;](&lt;https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz&gt;)</pre><pre>tar xvf node_exporter-1.3.1.linux-amd64.tar.gz</pre><p>7. Move and Grant Permissions</p><pre>sudo cp node_exporter-1.3.1.linux-amd64/node_exporter /usr/local/bin/</pre><pre>sudo chown ubuntu:ubuntu /usr/local/bin/node_exporter</pre><p>8. Check the installed node exporter version:</p><pre>node_exporter --version</pre><p><em>Example output from the above command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y8REAO7qc1jyF3vs_T1tCA.png" /></figure><h3>Configure and run Prometheus, Node Exporter and SystemD Service.</h3><p>SystemD is a daemon service useful for running applications as background processes.</p><ol><li>Create a Prometheus configuration file:</li></ol><pre>sudo mkdir /etc/prometheus/</pre><p><strong>Important: In the following code, make sure to replace &lt;YOUR-IP&gt; with the IP address of the node VPS you want to scrape. If running locally, change to localhost.</strong></p><pre>sudo tee /etc/prometheus/prometheus.yml &lt;&lt; EOF<br>global:<br>  scrape_interval: 10s<br>  scrape_timeout: 3s<br>  evaluation_interval: 5s<br><br>scrape_configs:<br>  - job_name: prometheus<br>    static_configs:<br>      - targets: [&#39;localhost:9090&#39;]<br><br>  - job_name: node_exporter<br>    static_configs:<br>      - targets: [&#39;&lt;YOUR-IP&gt;:9100&#39;]<br>EOF</pre><p>2. Create a system service for Prometheus</p><pre>sudo tee /etc/systemd/system/prometheus.service &lt;&lt; EOF<br>[Unit]<br>Description=Prometheus<br>Wants=network-online.target<br>After=network-online.target</pre><pre>[Service]<br>User=root<br>Type=simple<br>ExecStart=/usr/local/bin/prometheus \\<br>--config.file /etc/prometheus/prometheus.yml \\<br>--storage.tsdb.path /var/lib/prometheus/ \\<br>--web.console.templates=/etc/prometheus/consoles \\<br>--web.console.libraries=/etc/prometheus/console_libraries</pre><pre>[Install]<br>WantedBy=multi-user.target<br>EOF</pre><p>3. Create a system service for Node Exporter</p><pre>sudo tee /etc/systemd/system/node_exporter.service &lt;&lt; EOF<br>[Unit]<br>Description=Node Exporter<br>Wants=network-online.target<br>After=network-online.target</pre><pre>[Service]<br>User=root<br>Type=simple<br>ExecStart=/usr/local/bin/node_exporter</pre><pre>[Install]<br>WantedBy=multi-user.target<br>EOF</pre><p>4. Enable and Start Services</p><pre>sudo systemctl daemon-reload<br>sudo systemctl enable prometheus<br>sudo systemctl start prometheus<br>sudo systemctl enable node_exporter<br>sudo systemctl start node_exporter</pre><p>5. Check that Prometheus and Node_Exporter are running.</p><pre>sudo systemctl status prometheus</pre><p><em>Example output from the above command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYl-UNhPykOmRGU45OG1nQ.png" /></figure><pre>sudo systemctl status node_exporter</pre><p><em>Example output from the above command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pv6sYi2exWKbc6nJ8fmihw.png" /></figure><h3>Installing Grafana</h3><p><strong>Installing Grafana on the Prometheus server (can also use grafana cloud)</strong></p><p>Here are the steps to install Grafana on a Linux machine:</p><ol><li>Add the Grafana GPG key to the system:</li></ol><pre>curl &lt;https://packages.grafana.com/gpg.key&gt; | sudo apt-key add -</pre><p>2. Add the Grafana repository to the system:</p><pre>sudo add-apt-repository &quot;deb &lt;https://packages.grafana.com/oss/deb&gt; stable main&quot;</pre><p>3. Update the package index and install Grafana:</p><pre>sudo apt update<br>sudo apt install grafana</pre><p>4. Start the Grafana service:</p><pre>sudo systemctl start grafana-server</pre><p>5. Enable the Grafana service to start at boot:</p><pre>sudo systemctl enable grafana-server</pre><p>6. Check the status of the Grafana service:</p><pre>sudo systemctl status grafana-server</pre><p><em>Example output from the above command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qm2ghVXp89fahVjsXnmy2A.png" /></figure><p>Grafana can be accessed through a web browser. The default port for Grafana is 3000, so you can access it by typing <strong>http://your_server_ip:3000</strong> in your browser.</p><p>Once you have accessed the Grafana login page, you can log in with the default username and password, which are both “admin”. You will be prompted to change the password upon logging in for the first time.</p><p>After logging in, you can create a data source to connect to your Prometheus server and then create visualizations and dashboards to display your data.</p><h3>Checking Prometheus through local browser</h3><p>You can access Prometheus by going into your web browser and searching (make sure to replace &lt;YOUR-IP&gt; with the IP address of your Prometheus VPS):</p><p>http://&lt;YOUR-IP&gt;:9090/</p><p>Navigate your way to the targets page through the status drop-down at the top to ensure that both services are running. You should see something similar to what is below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cnJARkxC3_cvdE5IdvHXdA.png" /></figure><p>Now that everything should be connected, we can use Grafana to conduct a complete analysis. A web browser can be used to access Grafana. Grafana’s default port is 3000, so you can reach it by typing the following in a browser:</p><p>http://&lt;your_analysis_server_ip&gt;:3000</p><p>Once you’ve reached the Grafana login screen, you can sign in using the “admin” default username and password. When you first log in, you will be asked to change your password.</p><p>You can build a data source to connect to your analysis server once you’ve logged in, and you can then construct visualisations and dashboards to show your data.</p><p>Import generic dashboard UI using code: <strong>10180</strong></p><h3>Node Analysis</h3><p>The following analysis will take a look at the following points of interest:</p><ul><li><strong>Storage usage</strong>: This can reveal if the VPS is running low on disk space and may require additional storage.</li><li><strong>CPU and memory usage</strong>: This can give insight into how much of the VPS’s resources are being used and if any bottlenecks are present.</li><li><strong>Network usage</strong>: This can show if there are any spikes in traffic that may need to be addressed.</li></ul><h4>Storage Usage</h4><h4>Storage inflation due to improper pruning</h4><p>Due to my dedicated server not being set up until halfway through the blockspacerace ITN, I was only able to accurately analyse the second half of the ITN hardware usage. Had I had the server set up to scrape my hardware usage, I would have had some interesting points of interest, particularly around the storage use. After the first week, there was a pruning error where the storage of full nodes was filling up too fast. My whole storage was filled within a few days. This was resolved by deleting the data file, resyncing, and restarting the pruning process. I analysed the increasing capacity by using the HTOP command to bring up a live feed of my VPS hardware usage, as demonstrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rgxuwNOPU9o1nlvbuz152g.png" /><figcaption>HTOP example</figcaption></figure><p>Aside from the improper pruning, a 7-day average of disk activity can be seen below, in which all is normal with only small spikes in read disk activity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QlmDfZA2TssMjOm3XmHTgg.png" /><figcaption>7-day time period of disk space</figcaption></figure><h4>CPU and Memory Usage</h4><h4>What are you doing in my LOGS? — SHREX Error</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*CR_0o-g2kZlG4B9Yw0Xu4Q.gif" /></figure><p>The next major error that affected most nodes was the SHREK… sorry SHREX error, as can be seen in the example below. My CPU load increased gradually, but not enough to cause my hard drive to overload like most. My logs were dominated by SHREX errors but was one of the lucky ones(or was I?)… I know those that were affected were advised to restart their nodes, which helped. There may also be a correlation between this error increasing the work rate of the CPU and the error explained in the next section.</p><pre>ERROR        shrex-eds        shrexeds/server.go:93        server: writing status to stream        {&quot;err&quot;: &quot;stream reset&quot;}</pre><h4>The 6-Day ERROR</h4><p>Following on from the Shrex errors, my node has randomly dropped roughly every <strong>5–6 days</strong> since the 23rd of April. Which just so happened to be exactly <strong>6 days</strong> after Node v0.9.1. Hence, I have coined this error the <strong>6-day</strong> error, but why was this happening and how was it or is it still affecting my hardware?</p><p>I was the first to report the error, and it appeared as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NH9CcB3hIMqLY9Jf.png" /><figcaption><strong>6-day</strong> error 23/4/23</figcaption></figure><p>This was frustrating as I did not have my dedicated server set up at this point and was not able to analyse the hardware performance to assign a cause to this unknown error. I was running Node v0.9.1 and Go v12.0 when something went wrong, and I was asked to report it to the Node repository on Github. I went down again with the same exit code about <strong>6 days</strong> later and was down for a whole 24 hours before being able to fix it. The fix was simple, and I just had to restart my node both times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kn1byVl3K9JiqcKM.png" /><figcaption><strong>6-day</strong> Error #2 30/4/23</figcaption></figure><p>I have since not come across this issue again; however, the updates have been more regular since, and I have had to stop and start/restart my node several times before the 5- to 6-day time period has been fulfilled. A possible explanation for the above error may be a memory issue. I have zoomed out to display a 7-day time period, and as you can see, in this period I have restarted my node three times due to upgrades. Once on 5/08, another on 5/10, and the final just before 5/12. The question remains: would the same memory trend have continued had I not restarted my node? I have overlaid a red line to show the linear fit of the trend on two occasions, displaying a black star where the memory of my VPS would be at capacity, potentially causing my node to fail. The average of these two linear fits gives a time period of 5.825 days when the available memory would reach zero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kDeyW4t5VI5jAc8vjZkFmQ.png" /><figcaption>Linear fit for memory deterioration</figcaption></figure><p>To conclude on the unknown <strong>6-day </strong>error, I would say there is a direct correlation between the memory depletion and the time period in which the <strong>6-day</strong> error is being triggered. Thus meaning there is something still in the celestia node to cause an increasing amount of memory to be used over time. There may also be a potential link to the SHREX error in this 6-day error, as I am still getting them in my logs!</p><p>To further investigate this error, I would need to increase the memory hardware of my VPS and run the node for a longer period of time to see if there is a continuous depletion of available memory or if it plateaus at any point. If it were to plateau and the celestia-node was not the problem, then maybe a higher-spec machine with more memory is required. This may be worth further investigation by the Celestia team and analysing a larger pool of nodes.</p><p>To Conclude</p><ul><li><strong>Storage usage</strong></li></ul><p>Aside from the improper pruning, the storage of the device hasn&#39;t changed significantly and has been running at a maximum of 18% of my machine&#39;s capacity, which is approx. 12% of the capacity recommended by Celestia. The storage use hasn’t increased a lot since the updates, but I would conclude from this that a lower specification of storage may be adequate to run a consensus and bridge node on the same device. Although I would say further and longer periods of testing would be required to confirm this conclusion.</p><ul><li><strong>CPU and memory usage</strong></li></ul><p>Throughout the ITN, my machine has handled high CPU load activities, such as SHREX errors, well and, on average (7 days), has used 12.8% of the CPU load, reaching a maximum of 38% capacity CPU. Thus concluding that a 6-core CPU is sufficient, slightly overspecified, and in the overspecified range.</p><p>The interesting thesis on the 6-day error, I would have to find it inconclusive until further testing. Although I would conclude that 16 GB of RAM would be sufficient to give the machine more processing power if it should need it, considering the largest spike of activity, I had left 3.7 GB of available memory capacity. Reaching a maximum of 77% memory capacity. This is 154% over the maximum recommended RAM allowance for the ITN and running a bridge node. 16 GB of RAM and a 6-core CPU should be the minimum requirements.</p><ul><li><strong>Network usage</strong></li></ul><p>Network usage was flawless throughout, and my VPS bandwidth more than covered any abnormalities. The maximum IN was recorded at 975 kB, while the maximum OUT was recorded at 4.13 MB.</p><p>To give a closing statement, I think the overall ITN blockspacerace was run effectively and efficiently, with useful findings throughout. I am glad to see the month-long extension of the BSP ITN, which will allow myself and others to do further analytics on their nodes. Specific to a consensus and bridge node, I think the storage space is overspecified, assuming the pruning works efficiently in the mainnet, and as for the other specifications, I feel they are appropriate to meet the requirements.</p><h3>Appendix</h3><h4>Snapshot 7th May 2023 pre Phase 5 Update</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1mNqYKnFIdPZ_JTHdlNJog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y3ndz6BXFkwGd9dQXoCX1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PuhePLbG0wZXSOVJKfdy-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cQqQ8yUDvaVGMA1P9YZFIw.png" /></figure><p><strong>00:00 8th May — Last 24h view</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYTI_mlwjet1ZKah-EKXFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YdonAFf6m7PL1NJJDBrclQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vM0JMkFuRe1rZDD-OTeb0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdbctfpqqAbSQ5wF1JVJxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9HhadOzzjkmql7ACmGr1g.png" /></figure><h4>Node and App update 8th may 11:49AM — 15 minute view</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKY1-4tNmo_BpUAQlWNETQ.png" /></figure><p>Snashot 7-day average 15th may 22:00:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UwzoDEvtlDpVRnnEYS_2Fw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49617860ff7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KYVE — Beta Network — How to run multi pool protocol node.]]></title>
            <link>https://medium.com/@alijprof/kyve-beta-network-how-to-run-multi-pool-protocol-node-6e16011ae99c?source=rss-6158a5139960------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e16011ae99c</guid>
            <dc:creator><![CDATA[Professor Parpinsons]]></dc:creator>
            <pubDate>Wed, 09 Nov 2022 01:54:02 GMT</pubDate>
            <atom:updated>2022-11-09T01:58:46.516Z</atom:updated>
            <content:encoded><![CDATA[<h3>KYVE — Beta Network — How to run multi pool protocol node.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HQDKIJW6OYrSyEvSnKKXpQ.png" /></figure><p>The purpose of this article is to further enhance user experience and to clarify the multi pool process as some users may find this difficult. I currently work full time and am very busy in the evenings so I do apologise in advance if this is not perfect the first time around but I will refine it.</p><p>Most of the information can be found at the following link: <a href="https://docs.kyve.network/beta/">https://docs.kyve.network/beta/</a></p><h3><strong>Setting up a protocol node</strong></h3><p>Copy Paste into you local or virtual device:</p><pre>#Get the latest release of the KYSOR binaries<br>#Other binaries are available </pre><pre>wget <a href="https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-x64.zip">https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-x64.zip</a><br>unzip kysor-linux-x64.zip<br>mv kysor-linux-x64 kysor<br>chmod +x kysor</pre><pre>#Available KYSOR binaries<br>#Change wget command above if you are using a different system</pre><pre>linux-arm64 -&gt; <a href="https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-arm64.zip">https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-arm64.zip</a><br>linux-x64   -&gt; <a href="https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-x64.zip">https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-x64.zip</a><br>macos-x64   -&gt; <a href="https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-macos-x64.zip">https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-macos-x64.zip</a></pre><pre>#Initialize KYSOR</pre><pre>./kysor init --network beta --auto-download-binaries</pre><pre>#Create valaccount for moonbeam </pre><pre>./kysor valaccounts create \<br>--name moonbeam \<br>--pool 0 \<br>--storage-priv &quot;$(cat path/to/arweave.json)&quot; \<br>--verbose \<br>--metrics</pre><pre>#Run KYSOR with Systemd</pre><pre>tee &lt;&lt;EOF &gt; /dev/null /etc/systemd/system/moonbeamd.service<br>[Unit]<br>Description=KYVE Protocol-Node moonbeam daemon<br>After=network-online.target</pre><pre>[Service]<br>User=$USER<br>ExecStart=/home/$USER/kysor start --valaccount moonbeam<br>Restart=on-failure<br>RestartSec=3<br>LimitNOFILE=infinity<br>EOF</pre><pre>#Start the daemon</pre><pre>sudo systemctl enable moonbeamd<br>sudo systemctl start moonbeamd</pre><pre>#Check logs </pre><pre>sudo journalctl -u moonbeamd -f</pre><pre>#At this stage go to the <a href="https://kyve-beta.netlify.app/">https://kyve-beta.netlify.app/</a> and join pool and inert the information seen when you check the logs into the corresponding boxes as shown below.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*N49C7Ja-Jn_OlRR25PEENw.png" /></figure><p>At this stage your node should be running with healthy logs.</p><p><strong>Multi Pools</strong></p><p>For this I disabled my firewall in my VPS, enables it again and then configured the firewall to allow different destination ports. This will be different depending what system you are running from. For OVHcloud, which I am using the guide to do so can be found here:</p><p>**not even sure you have to do this step as the port numbers are non-admin level ports so many end users without admin rights can just start up a server. Anyway this is what I did.</p><p><a href="https://docs.ovh.com/gb/en/dedicated/firewall-network/">https://docs.ovh.com/gb/en/dedicated/firewall-network/</a></p><p>Pools and Ports I used:</p><p>Moonbeam → 8080 (default)</p><p>Celo → 8000</p><p>Avax → 8888</p><p>Bitcoin → 80</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZY8eLYfRVFSo_imtzvc7Xw.png" /><figcaption>My OVHCloud destination ports</figcaption></figure><p>Below is a very helpful structure to understand how to access the required directories.</p><pre>.kysor<br>├── config.toml<br>├── logs<br>│   └── 2022-09-29T08:38:24.513Z.log<br>│   └── 2022-09-29T09:29:22.219Z.log<br>├── upgrades<br>│   ├── pool-0<br>│   |   ├── 1.8.6<br>│   |   |   ├── bin<br>│   |   |   │   └── kyve-linux-x64<br>│   |   |   ├── cache<br>|   |   |   │   ├── 234.json<br>|   |   |   │   └── ...<br>│   |   |   └── logs<br>│   |   |       ├── 2022-09-29T08:23:02.003Z.log<br>│   |   |       └── 2022-09-29T08:23:24.953Z.log<br>│   |   └── 1.8.7<br>│   |       ├── bin<br>│   |       │   └── kyve-linux-x64<br>│   |       ├── cache<br>|   |       │   ├── 567.json<br>|   |       │   └── ...<br>│   |       └── logs<br>│   |           └── 2022-09-29T08:23:24.953Z.log<br>│   └── pool-2<br>│       └── 0.8.6<br>│           ├── bin<br>│           │   └── kyve-linux-x64<br>│           ├── cache<br>|           │   ├── 3847.json<br>|           │   └── ...<br>│           └── logs<br>│               └── 2022-09-29T08:23:02.003Z.log<br>└── valaccounts<br>    ├── moonbeam.toml<br>    └── celo.toml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTtQhbZWRqgjHwaZI6aqZw.jpeg" /></figure><p>Now we can set up our Celo pool</p><pre>#Create valaccount for celo</pre><pre>./kysor valaccounts create \<br>--name celo \<br>--pool 1\<br>--storage-priv &quot;$(cat path/to/arweave.json)&quot; \<br>--verbose \<br>--metrics</pre><pre>#Access celo.toml to change port</pre><pre>vim /root/.kysor/valaccounts/celo.toml</pre><pre><strong>#Press &quot;i&quot; to alter the text and change the port from 8080 to 8000. Once done press ESC &quot;:wq!&quot; ENTER. This will save the file and exit. </strong></pre><pre>#Run KYSOR with Systemd</pre><pre>tee &lt;&lt;EOF &gt; /dev/null /etc/systemd/system/celod.service<br>[Unit]<br>Description=KYVE Protocol-Node celo daemon<br>After=network-online.target</pre><pre>[Service]<br>User=$USER<br>ExecStart=/home/$USER/kysor start --valaccount celo<br>Restart=on-failure<br>RestartSec=3<br>LimitNOFILE=infinity<br>EOF</pre><pre>#Start the daemon</pre><pre>sudo systemctl enable celod<br>sudo systemctl start celod</pre><pre>#Check logs</pre><pre>sudo journalctl -u celod -f</pre><pre>#At this stage go to the <a href="https://kyve-beta.netlify.app/">https://kyve-beta.netlify.app/</a> and join pool and inert the information seen when you check the logs. Same as moonbeam above but select celo. </pre><p>Now the same for avax and buttcorn but I am too tired so will publish and edit later. This is a working progress.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e16011ae99c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Thoughts on STEPN and My Game Strategy.]]></title>
            <link>https://medium.com/@alijprof/my-thoughts-on-stepn-and-my-game-strategy-de15d769495e?source=rss-6158a5139960------2</link>
            <guid isPermaLink="false">https://medium.com/p/de15d769495e</guid>
            <category><![CDATA[gamefi]]></category>
            <category><![CDATA[stepn]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[move2earn]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Professor Parpinsons]]></dc:creator>
            <pubDate>Wed, 05 Jan 2022 00:24:08 GMT</pubDate>
            <atom:updated>2022-01-05T00:24:08.931Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="https://stepnofficial.medium.com/blockchain-trilemma-2-0-the-game-fi-trilemma-c24f1621548c" src="https://cdn-images-1.medium.com/max/832/0*Q51bK4xxlwTNZTcy.png" /><figcaption><a href="https://medium.com/u/343ca8528a45">STEPN Official</a> Medium post describing where they sit in the Game-fi Trilemma</figcaption></figure><p>Gaming and Defi… or GameFi is definitely a trending topic just now and one that IMO will have lots of growth in 2022. <a href="https://medium.com/u/343ca8528a45">STEPN</a> have enter this space with their new Move2Earn game. Yes, that right, you get paid to walk, jog or run.</p><p>After a successful few months of private beta testing, they have more recently launched their public beta. But how do they plan to continue their quick progression and growth? <a href="https://medium.com/u/343ca8528a45">STEPN</a> utilise the move2earn feature through a sneaker NFT, which is used on their iOS and android app. With crypto being a confusing a scary space to people who don’t know much about it and don’t want to take the time to learn, <a href="https://medium.com/u/343ca8528a45">STEPN</a> had to find a way to make it accessible to everyone. StepN’s solution to bridge the gap between crypto and normal users is through a web3.0 wallet on their application.</p><p>Why is this clever? It gives users the ability to use an application on their phone without even realising they are involved in crypto. Hence bridging the gap to allow normies to get involved. Users will have the ability to rent shoe NFT’s through the app without even having to enter the big confusing world of crypto, allowing them to earn without having to learn how.</p><p>Just to show you the power here is my walk on Christmas eve where I earned 50 GST, roughly $90. Displayed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*17pRcuKvKLnblUV9dqrQXg.jpeg" /><figcaption>Record of my walk on Xmas eve</figcaption></figure><h3><strong>Why Am I Bullish On STEPN?</strong></h3><blockquote><em>STEPN market = gaming industry + fitness industry</em></blockquote><h4><strong>Gaming</strong>:</h4><p><a href="https://www.accenture.com/us-en/insights/software-platforms/gaming-the-next-super-platform">In a report</a>, Accenture estimates the Gaming industry has surpassed $300billion, thus, surpassing the movie and music industry combined.</p><p>Viewership keeps growing every year, from 134 million viewers <a href="https://www.roundhillinvestments.com/research/esports/esports-viewership-vs-sports">in 2012</a> to 474 million <a href="https://www.statista.com/statistics/490480/global-esports-audience-size-viewer-type/">in 2021</a>.</p><p>And the market agrees, as <a href="https://www.statista.com/statistics/532689/annual-esports-prize-pools-worldwide/">Esports prize pools</a> have also kept growing from $115 million in 2017 to an estimated $400 million in 2021.</p><p><strong>Fitness industry:</strong></p><p>The world has over <a href="https://stepnofficial.medium.com/how-did-we-build-the-worlds-first-move2earn-nft-game-in-four-months-fde4d13dfb18">1 billion people who walk or run for exercise, of which 400 million use an app to track their movements.</a> Think of the possibilities if this market realise they can now be paid to do what they already do.</p><p>This not only incentives healthier living but <a href="https://medium.com/u/343ca8528a45">STEPN</a> also have an environmental conscience with a proportion of the profits going towards carbon neutrality.</p><p>Basically, what I am trying to say is this isn’t just targeting one large market but two. More opportunity and more growth for <a href="https://medium.com/u/343ca8528a45">STEPN Official</a>.</p><p>There is huge potential in this game and 2022 is going to be a big year for <a href="https://medium.com/u/343ca8528a45">STEPN</a>. Now moving on with my game strategy…</p><h3><strong>My strategy:</strong></h3><p>I want to start by saying, this is what I am doing and it is by no means what you should do but it is working well for me.</p><p>I started off with being rewarded for being a bug catcher and early bird in the closed beta with an uncommon shoe box (very lucky). I traded the market a bit when it was first listed on ME and got enough to get 2 uncommons and 2 commons. I now have 6 sneakers split 3 uncommons and 3 commons, it would be 7 but I just sold one of my uncommons. I did this as I want to start saving some to buy into the IDO and I am currently all in on <a href="https://medium.com/u/343ca8528a45">STEPN</a> nfts. Might be crazy but we’ll find out in time, I think this game a has a lot to come so hold tight.</p><h4><strong>Minting</strong>:</h4><p><a href="https://whitepaper.stepn.com/nft-and-marketplace">Shoe-Minting Event (SME) is when players use two Sneakers they own (Vintage) as a Blueprint and produce one <strong>Shoe Box</strong> (containing a New Sneaker).</a> Every vintage combination gives a different probability on what shoe box you receive.</p><p>I have been able to mint using my 2 uncommons giving me 100% probability of getting another uncommon shoebox. My advice would be to save your uncommon’s mints until you have another one to do it with. This will maximise your potential ROI. To further maximise your minting you should keep a hold of your newly minted to mint with a previous, this will lower your minting cost average. Then this can be done with the next sneaker you mint and so on.</p><p>It is important to remember that all combinations give different results so it important to read the <a href="https://whitepaper.stepn.com/nft-and-marketplace">whitepapers</a> to ensure you are maximising the probability of what you want.</p><h4><strong>Levelling</strong>:</h4><p><a href="https://whitepaper.stepn.com/nft-and-marketplace">By burning GST, players can level up their Sneakers from Lv1 to Lv 28. The number of tokens required to level increases exponentially as the level progresses.</a></p><p>For levelling, I have been increasing 2 sneakers as quick as I can and have been able to get them to about level 19 so far. As for my other sneakers I have been getting to level 5 to allow for more mints. I don’t see the rush in getting them all to level 10 just now as renting won’t be out for quite a while yet so GST is better spent elsewhere IMO. Basically level the one you use and like the most up first and then play around with the others to mint or sell or accumulate. Whatever suits you best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*BzKOAXBuq16sdjka-Lu8Aw.jpeg" /><figcaption>My Favourite Sneaker In-Game</figcaption></figure><h4><strong>Attributes:</strong></h4><p>The sneakers have a mixture of 4 attributes which allow you to earn more in different ways while you move. These are:</p><ul><li>Efficiency</li><li>Luck</li><li>Comfortability</li><li>Resilience</li></ul><p>The question is where do you allocate your points when you level up?</p><p>For the sneakers I use I have prioritised efficiency and resilience with a roughly 3:1 split respectively. That will allow me to earn more while lowering my repair fee. I have however got a sneaker with high stats in everything and 1 with allocated points given equally to all 4. I think a more equal allocation will be better when the game advances and becomes more balanced but for now efficiency and resilience are king in my book.</p><p>Anyway, here ends my first medium post. I hope it was helpful. If you want to check out my Twitter follow me @<a href="https://twitter.com/alijprof/status/1474437402567524356?s=20">alijprof</a> or chat to me in the disco @professorparinsons#2346</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de15d769495e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>