jenkins-infra / helpdesk

Open your Infrastructure related issues here for the Jenkins project
https://github.com/jenkins-infra/helpdesk/issues/new/choose
17 stars 10 forks source link

[ci.jenkins.io] Switch system disk to SSD #3526

Closed dduportal closed 1 year ago

dduportal commented 1 year ago

As per the Azure Advisor Monitor, we should switch the system disk of ci.jenkins.io to an SSD.

Capture d’écran 2023-04-19 à 18 30 50

The VM has 2 disks today:

Capture d’écran 2023-04-19 à 18 32 04

Capture d’écran 2023-04-19 à 18 36 59

Capture d’écran 2023-04-19 à 18 41 53

=> The Azure metrics (ref. https://learn.microsoft.com/en-us/azure/virtual-machines/disks-metrics) shown above does not show any contention on the system disk in the past 7 days, which does not prompt us to switch to an SSD. => However, the datadog VM metrics shows that the latency is clearly higher (/dev/sdc is the system disk, /dev/sdb is the Premium SSD datadisk) which is a good reason to follow the advisor message:

Capture d’écran 2023-04-19 à 18 49 37

=> Please note that the system disk hosts the system, but also the temp dirs and the logs (along with all the container overlays).

dduportal commented 1 year ago

A word on the pricing:

Current cost for ci.jenkins.io storage for the past 6 month, to have an order of magnitude:

![Uploading Capture d’écran 2023-04-19 à 19.50.22.png…]()

dduportal commented 1 year ago

Let's go for a Standard SSD \o/

dduportal commented 1 year ago
dduportal commented 1 year ago

back to work ✅

=> let's check the metrics in ~24h

dduportal commented 1 year ago

This change did not had any visible effect except the Azure Advisor does not alert us on the VM anymore :'(

Capture d’écran 2023-04-21 à 14 13 56

root@ci:~# lsblk /dev/sdc
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdc       8:32   0   64G  0 disk 
├─sdc1    8:33   0 49.9G  0 part /
├─sdc14   8:46   0    4M  0 part 
└─sdc15   8:47   0  106M  0 part /boot/efi
root@ci:~# fdisk -l /dev/sdc
GPT PMBR size mismatch (104857599 != 134217727) will be corrected by w(rite).
Disk /dev/sdc: 64 GiB, 68719476736 bytes, 134217728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F9A32187-D01B-465B-AEC5-3D0FE6FADD47

Device      Start       End   Sectors  Size Type
/dev/sdc1  227328 104857566 104630239 49.9G Linux filesystem
/dev/sdc14   2048     10239      8192    4M BIOS boot
/dev/sdc15  10240    227327    217088  106M EFI System

Partition table entries are not in disk order.

=> the partition table seems in weird shape, which could explain a lot. => Please note the VM generation is v1 which could also have an impact (because not an UEFI boot as per https://learn.microsoft.com/en-us/azure/virtual-machines/generation-2)

dduportal commented 1 year ago

Closing in favor of https://github.com/jenkins-infra/helpdesk/issues/3535