Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

matters-ipfs

Running IPFS inside Docker

Start

Start daemon with enabled automatic periodic repo garbage collection.

docker-compose up -d

Stop

docker-compose down

Garbage collection manually

docker-compose exec daemon ipfs repo gc

Upsizing EBS

Identifying the file system for a volume

df -hT

Extending a partition

sudo growpart /dev/nvme0n1 1

Extending the file system

sudo resize2fs /dev/nvme0n1p1

References

Setup AWS Cloudwatch Memory and Drive Monitoring

Install the required packages on Ubuntu

sudo apt-get update
sudo apt-get install unzip
sudo apt-get install libwww-perl libdatetime-perl

Install monitoring scripts

curl https://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip -O

unzip CloudWatchMonitoringScripts-1.2.2.zip && \
rm CloudWatchMonitoringScripts-1.2.2.zip && \
cd aws-scripts-mon

Test Run without posting data to CloudWatch

./mon-put-instance-data.pl --mem-util --mem-used --mem-avail --disk-space-util --disk-space-avail --disk-space-used --disk-path=/ --verify --verbose --aws-access-key-id=AWS_ACCESS_KEY_ID --aws-secret-key=AWS_ACCESS_KEY

Report to Cloudwatch Periodically

crontab -e
*/5 * * * * /home/ubuntu/aws-scripts-mon/mon-put-instance-data.pl --mem-util --mem-used --mem-avail --disk-space-util --disk-space-avail --disk-space-used --disk-path=/ --from-cron --aws-access-key-id=AWS_ACCESS_KEY_ID --aws-secret-key=AWS_ACCESS_KEY

References

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors