Skip to main content

Posts

Showing posts with the label cloud

Salt stack issues

The function “state.apply” is running as PID Restart salt-minion with command:  service salt-minion restart No matching sls found for ‘init’ in env ‘base’ Add top.sls file in the directory where your main sls file is present. Create the file as follows: base: 'web*': - apache If the sls is present in a subdirectory elasticsearch/init.sls then write the top.sls as: base: '*': - elasticsearch.init How to execute saltstack-formulas create file  /srv/pillar/top.sls  with content: base : ' * ' : - salt create file  /srv/pillar/salt.sls  with content: salt : master : worker_threads : 2 fileserver_backend : - roots - git gitfs_remotes : - git://github.com/saltstack-formulas/epel-formula.git - git://github.com/saltstack-formulas/git-formula.git - git://github.com/saltstack-formulas/nano-formula.git - git://github.com/saltstack-formulas/rabbitmq-formula.git - git://github.co...

Salt stack issues

The function "state.apply" is running as PID Restart salt-minion with command: service salt-minion restart No matching sls found for 'init' in env 'base' Add top.sls file in the directory where your main sls file is present. Create the file as follows: [code language="bash"] base: 'web*': - apache [/code] If the sls is present in a subdirectory elasticsearch/init.sls then write the top.sls as: [code language="bash"] base: '*': - elasticsearch.init [/code] How to execute saltstack-formulas create file  /srv/pillar/top.sls  with content: base : ' * ' : - salt create file  /srv/pillar/salt.sls  with content: salt : master : worker_threads : 2 fileserver_backend : - roots - git gitfs_remotes : - git://github.com/saltstack-formulas/epel-formula.git - git://github.com/saltstack-formulas/git-formula.git - git://github.com/saltstack-formulas/nano-formula.git -...

Configuring Graphite on Centos 7

Clone the source code: git clone https://github.com/graphite-project/graphite-web.git cd graphite-web git checkout 0.9.x cd .. git clone https://github.com/graphite-project/carbon.git cd carbon git checkout 0.9.x cd .. git clone https://github.com/graphite-project/whisper.git cd whisper git checkout 0.9.x cd .. Configure whisper: pushd whisper sudo python setup.py install popd Configure carbon: pushd carbon sudo python setup.py install popd pushd /opt/graphite/conf/ sudo cp carbon.conf.example carbon.conf sudo cp storage-schemas.conf.example storage-schemas.conf popd storage-schemas.conf has information about schema definitions for Whisper files. We can define the data retention time under this file. By default it retains everything for one day. Once graphite is configured changing this file wont change whisper’s internal metrics. You can use whisper-resize.py for that. Configure Graphite pushd graphite-web python check-dependencies.py Install the unmet dependencies: sudo ...

Configuring Graphite on Centos 7

Clone the source code: git clone https://github.com/graphite-project/graphite-web.git cd graphite-web git checkout 0.9.x cd .. git clone https://github.com/graphite-project/carbon.git cd carbon git checkout 0.9.x cd .. git clone https://github.com/graphite-project/whisper.git cd whisper git checkout 0.9.x cd .. Configure whisper: pushd whisper sudo python setup.py install popd Configure carbon: pushd carbon sudo python setup.py install popd pushd /opt/graphite/conf/ sudo cp carbon.conf.example carbon.conf sudo cp storage-schemas.conf.example storage-schemas.conf popd storage-schemas.conf has information about schema definitions for Whisper files. We can define the data retention time under this file. By default it retains everything for one day. Once graphite is configured changing this file wont change whisper’s internal metrics. You can use whisper-resize.py for that. Configure Graphite pushd graphite-web python check-dependencies.py Install the unmet dependencies: sudo apt-get insta...

Higher order infrastructure

Developer need not to worry about the underlying infrastructure, all he/she has to look into is the services running on them and the stack they write. You do not have to worry about where your code is running. Which leads to faster rollouts, faster releases, faster deployments. Even rollbacks have become piece of cake with having docker on your infrastructure. If there is any change in your service all you have to do is change the YAML (yet another markup language) file and you will have a completely new service in minutes.  Docker was build for scalabilty and high availability. It is very easy to load balance your services in docker, scale up and scale down as per your requirements.  The most basic application that is demoed by docker, is the following cat and dog polling polygot application. Each part of this application will be written and maintained by a different team. Add it will just get collaborated by docker. The above are the compone...

Higher order infrastructure

Developer need not to worry about the underlying infrastructure, all he/she has to look into is the services running on them and the stack they write. You do not have to worry about where your code is running. Which leads to faster rollouts, faster releases, faster deployments. Even rollbacks have become piece of cake with having docker on your infrastructure. If there is any change in your service all you have to do is change the YAML (yet another markup language) file and you will have a completely new service in minutes.  Docker was build for scalabilty and high availability. It is very easy to load balance your services in docker, scale up and scale down as per your requirements. The most basic application that is demoed by docker, is the following cat and dog polling polygot application. Each part of this application will be written and maintained by a different team. Add it will just get collaborated by docker. The above are the components required to get the docker application u...

Rancher

This exposes web hooks to talk to our environment. This is a microservice which we can deploy in our environment. Janitor is used for cleaning up unused images.