Skip to content

Instantly share code, notes, and snippets.

View varunpalekar's full-sized avatar

Varun Palekar varunpalekar

  • Siemens
  • Pune
View GitHub Profile

Run normal shell command on:

salt '*' cmd.run 'hostname'

In above cmd => function and run => module function of main function, you can also write your own function and many people already made many of them, you can also use them.

salt '*' disk.usage

Above function is for disk usage

1 Java Application Monitoring Architecture

2 Components:

2.1 Application Metric monitoring agent StageMonitor:

An open source solution to application performance monitoring for java server applications. Its application is divided in two main parts:

Create database dump

mysqldump -h mysqlhost --port 3306 -u reporting -p database_name | gzip > database_name_$(date '+%y-%m-%d').gz

Restore mysql dump to database

mysql -u <user> -p -h mysqlhost [database] < db_backup.dump

See size of all Database in MySQL

This document includes details about chef-dk tool set.

Chef-dk tool set consists of following tools:

  • chef
  • kitchen
  • berks
  • chef-apply
  • chef-client
  • chef-shell