How to use the internal storage of my EC2 instances?

Issue

  • We do not use “EBS only” AWS EC2 instances for build/elasticsearch workers and we want to use the internal storage of the instance.

Environment

  • CloudBees Jenkins Enterprise (CJE)
  • Amazon Web Services (AWS)

Resolution

To do that when you make the cje prepare worker-add operation to add a new build/elasticsearch worker, you have to set use_ephemeral = yes in the worker-add.config file. Your new build/elasticsearch worker will use the first disk of your instance as storage for run Agents /var/lib/docker.

df -h

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda2       50G  6.5G   44G  13% /
devtmpfs        1.8G     0  1.8G   0% /dev
tmpfs           1.8G     0  1.8G   0% /dev/shm
tmpfs           1.8G   17M  1.8G   1% /run
tmpfs           1.8G     0  1.8G   0% /sys/fs/cgroup
/dev/xvde        15G  1.9G   13G  13% /mnt
tmpfs           361M     0  361M   0% /run/user/1000

lsblk

NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
xvda    202:0    0   50G  0 disk 
├─xvda1 202:1    0    1M  0 part 
└─xvda2 202:2    0   50G  0 part /
xvde    202:64   0 15.3G  0 disk /var/lib/docker
xvdf    202:80   0 15.3G  0 disk 
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.