OnePressTech's picture

Excellent...I am available to invest time most of next week :-)

Can we set up a phone call? I would like to learn the process of building a TKLX VM, configuring TKLBAM, and customising confconsole. I am happy to do some coding and testing. And I have documented all the configurations we will need. I would like to document the entire process required to build this VM.

FYI- I need to upgrade my client from an M1 Medium to a T2 Medium so this is perfect timing. And since I will need to migrate using Import Export I can document the migration process as well.

Regarding your swapfile question...I used a swapfile. I considered a swap partition a future consideration.

Swappiness should be 10. We can't wait until 100% RAM utilization and risk an OOM kill. 10% is an adequate buffer based on my analysis of previous OOM kills that occured on my GitLab system.

Swapfile / Swap-partition references I short-listed:

- how-do-i-configure-swappiness

- setting-swap-partition-size

- how-to-configure-virtual-memory-swap-file-on-a-vps

 

My Instructions:


1) Configure Swapiness
- sudo vi /etc/sysctl.conf
- Add the following line:
    vm.swappiness = 10
- You can test this using the following BASH command:
    cat /proc/sys/vm/swappiness
- You can also change swappiness at runtime using the following BASH command:
    sudo sysctl vm.swappiness=10
    
2) Configure 2GB swapfile (blocksize (a.k.a. bs parameter) should not be too small or too large from an efficiency perspective)
    - cd /
    - dd if=/dev/zero of=/swapfile bs=2048k count=1000
    - mkswap /swapfile
    - swapon /swapfile
    - EDIT /etc/fstab and add the following line so that the swapfile is recreated on reboot:
        /swapfile       swap    swap    auto      0       0
    
    You can check the swapfile using
    a) swapon -s
    b) free

NOTE: GitLab VM should be defaulted to 20GB disk space and recommended minimum instance size is T2 / T3 Medium.

 

Cheers,

Tim (Managing Director - OnePressTech)