Testnet HF24 Eclipse: Feedback about my installation šŸ‘

in #hive ā€¢ 10 months ago

Today @howo published How to participate in the tesntets this week (full guide) which made me want to try his guide to prepare for the next HF24 Eclipse.

It's perfect, I just have a VPS server on standby that I can play with. A 4 vCores with 8Gb of RAM and 160Gb in NVMe, I think it will be efficient, since the hardware requirements are not huge.

eclipse.jpg

Original photo by Jongsun Lee on Unsplash

Here we go!

Warning:

You can't install Hard fork 23 on Ubuntu 20.04 LTS (Focal Fossa). it not have package libboost-signals-dev šŸ„ŗ

Signals (v1) is now removed. Its removal was announced in 1.68 and its deprecation was announced in 1.54. Boost 1.68 is the last release that provides this library.

My first try of HF24 Eclipse with an Ubuntu 18.04 LTS (Bionic Beaver)

In order to be able to compile, I still had to add a swap file of 8Gb

Htop.jpeg

Htop took at 73% of the build

How to add a Swap File

cd /
sudo dd if=/dev/zero of=swapfile bs=1M count=8000
sudo mkswap swapfile
sudo swapon swapfile
sudo nano etc/fstab

Add the line given below, save and close.

/swapfile none swap sw 0 0

To check

cat /proc/meminfo

A better Time Synchronization with NTP

For a better time synchronization, I will use the NTP packet.

Before installing ntpd, we should turn off timesyncd (the default manager for time synchronization):

witness@vps-cb013bf5:~$ sudo timedatectl set-ntp no

To install the NTP packet run the command

witness@vps-cb013bf5:~$ sudo apt install ntp

ntpd will be started automatically after install. You can check the version with the command

witness@vps-cb013bf5:~$ sntp --version
sntp 4.2.8p12@1.3728-o (1)

We need to edit the ntp.conf file to replace the default ubuntu.pool with something closer. To do this, you first need to check here https://www.ntppool.org/zone/@ which are the closest pool servers.

Edit the ntp.conf file

witness@vps-cb013bf5:~$ sudo vim /etc/ntp.conf

Replace

# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
pool 0.ubuntu.pool.ntp.org iburst
pool 1.ubuntu.pool.ntp.org iburst
pool 2.ubuntu.pool.ntp.org iburst
pool 3.ubuntu.pool.ntp.org iburst

By your nearest NTP pool servers (fr in my case)

# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
pool 0.fr.pool.ntp.org iburst
pool 1.fr.pool.ntp.org iburst
pool 2.fr.pool.ntp.org iburst
pool 3.fr.pool.ntp.org iburst

Restart the service

witness@vps-cb013bf5:~$ sudo service ntp restart

Check if everything OK

witness@vps-cb013bf5:~$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 0.fr.pool.ntp.o .POOL.          16 p    -   64    0    0.000    0.000   0.000
 1.fr.pool.ntp.o .POOL.          16 p    -   64    0    0.000    0.000   0.000
 2.fr.pool.ntp.o .POOL.          16 p    -   64    0    0.000    0.000   0.000
 3.fr.pool.ntp.o .POOL.          16 p    -   64    0    0.000    0.000   0.000

Increase the max open files limit

To avoid the problem of Too many open files we need to make a few changes to the ulimit

Edit the limits.conf file

witness@vps-cb013bf5:~$ sudo vim /etc/security/limits.conf

Add the following lines

root            soft     nproc          999999
root            hard     nproc          999999
root            soft     nofile         999999
root            hard     nofile         999999
witness         soft     nproc          999999
witness         hard     nproc          999999
witness         soft     nofile         999999
witness         hard     nofile         999999

Edit the common-session file

witness@vps-cb013bf5:~$ sudo vim /etc/pam.d/common-session

Add the following line

session required        pam_limits.so

Reboot the server for the change to take effect.

Check the open files limit (need to be connected with the right user!)

witness@vps-cb013bf5:~$ ulimit -n
999999

The Result

endbuild.jpg

Check of the version

version.jpg

First launch

1st_launch.jpg

Send the transaction from wallet

wallet_transaction.jpg

And finally my server makes blocks

On the Testnet it's not like in Production where I validate 1 block every 3 and a half days, here it's a lot of work šŸ˜šŸ¤£šŸ˜‹

hf24.jpg


My second try of HF24 Eclipse with an Ubuntu 20.04 LTS (Focal Fossa)

I used more time than expected for the first try and this post so for the second try it will be later šŸ˜‰


I let running this server so you're free too use it if needed

http://hf24.mintrawa.com:8090

wss://hf24.mintrawa.com:8091

hf24.mintrawa.com:2001


Thanks for reading :)


Last posts
HaPpY 100 days on Hive!
[MTW Toolbox] SEO & some changes šŸ‘Øā€šŸ’»
My 1st HIVE block engraved in the rock šŸ†
[MTW Toolbox] A new view of witnesses šŸ‘Øā€šŸ’»


mintrawa_witness.jpg


If you like my work, consider voting for my witness
it will only cost you 30 seconds of your time šŸ˜‰


My witness presentation: @mintrawa a Gen X - Geek šŸ¤“ Gamer šŸŽ® Traveler ā›©ļø Witness
Upvote for my witness: https://toolbox.mintrawa.com/witnesses/@mintrawa or click here via HiveSigner

Sort: Ā 

Nice! That's crazy the amount of RAM required just to compile the software...šŸ˜…
I once wanted to try to do some dev on hived, once I had read the specifications for the building machine, I just gave up šŸ˜‚

Thanks, yes it's a little bit crazy, this is the problem with developers who didn't experienced the lean years when the first computers had only a handful of RAM, they put aside the optimization of resources to save time šŸ¤£ It's sure that surprisingly it represents an investment without being sure of any ROI, It's a bit expensive toy šŸ˜…


Witness FR - Gen X - Geek šŸ¤“ Gamer šŸŽ® traveler ā›©ļø

My #posh tweet: