Apache Benchmarking

Apache Benchmarking is a great tool for testing Apache performance on web servers, for example running the following bash command This will test 1000 connections (-n), limited to 10 concurrent connections (-c) on the website localhost [root@node1 ~]# ab -n 1000 -c 10 http://localhost/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam … Continue reading Apache Benchmarking


running jira as docker conatiner

[root@node1 ~]# docker search jira INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/cptactionhank/atlassian-jira Atlassian JIRA wrapped in a Docker image 317 [OK] [root@node1 ~]# docker pull docker.io/cptactionhank/atlassian-jira [root@node1 ~]# docker run -d -p 80:8080 docker.io/cptactionhank/atlassian-jira 607ebcd0b3ec3054634019b5952416217b1df0840edb9907acee4c31fefb916d [root@node1 ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 607ebcd0b3ec docker.io/cptactionhank/atlassian-jira "/docker-entrypoint.s" 2 minutes ago Up … Continue reading running jira as docker conatiner

cleaning up disk

[root@node1 ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda1 xfs 10G 10G 11M 100% / [root@node1 ~]# du -h /| grep '[0-9\.]\+G' 1.3G /var/lib 5.8G /var/log/jenkins 5.8G /var/log 7.3G /var 4.0K /usr/share/locale/zh_CN.GB2312/LC_MESSAGES 4.0K /usr/share/locale/zh_CN.GB2312 1.8G /usr 10G / compress the file with tar i my case even i dont have space … Continue reading cleaning up disk

installing nexus in centos7

[root@node1 ~]# wget http://download.sonatype.com/nexus/3/latest-unix.tar.gz [root@node1 ~]# tar xvf latest-unix.tar.gz -C /opt [root@node1 ~]# cd /opt/nexus-3.7.1-02/ [root@node1 nexus-3.7.1-02]# ls bin deploy etc lib LICENSE.txt NOTICE.txt public system [root@node1 nexus-3.7.1-02]# ./bin/nexus start WARNING: ************************************************************ WARNING: Detected execution as "root" user. This is NOT recommended! WARNING: ************************************************************ Starting nexus [root@node1 nexus-3.7.1-02]# netstat -tln Active Internet connections (only servers) … Continue reading installing nexus in centos7

Intalling sonarqube in centos7

[root@node1 ~]# yum install http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm -y [root@node1 ~]# yum install mysql-server -y [root@node1 ~]# systemctl start mysqld [root@node1 ~]# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password … Continue reading Intalling sonarqube in centos7

CI/CD with Jenkins

Setting up a GitHub webhook in Jenkins Install Plugin Within the Dashboard, select Manage Jenkins on the left. On the Configuration page, select Manage Plugins. Manage Plugins page will give you a tabbed interface. Click Available to view all the Jenkins plugins that can be installed. Using the search box, search for gitlab plugin. There … Continue reading CI/CD with Jenkins

hook up grafana with prometheus

[root@prom1 ~]# useradd prometheus [root@prom1 ~]# su - prometheus [prometheus@prom1 ~]$ wget https://github.com/prometheus/node_exporter/releases/download/v0.14.0/node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 ~]$ ls -l total 3928 -rw-rw-r--. 1 prometheus prometheus 4019675 Nov 26 02:42 node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 ~]$ mkdir -p Prometheus/node_exporter [prometheus@prom1 ~]$ cd $_ [prometheus@prom1 node_exporter]$ [prometheus@prom1 node_exporter]$ tar xzf ../../node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 node_exporter]$ logout [root@prom1 ~]# vim /etc/systemd/system/node_exporter.service # echo "[Unit] Description=Node Exporter … Continue reading hook up grafana with prometheus

installing consul

[root@instance-1 ~]# wget https://releases.hashicorp.com/consul/1.0.0/consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# ls -l -rw-r--r--. 1 root root 10407455 Oct 16 16:36 consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# yum install unzip -y [root@instance-1 ~]# unzip consul_1.0.0_linux_amd64.zip Archive: consul_1.0.0_linux_amd64.zip inflating: consul [root@instance-1 ~]# ls -l -rwxr-xr-x. 1 root root 42845786 Oct 16 16:30 consul -rw-r--r--. 1 root root 10407455 Oct 16 16:36 consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# … Continue reading installing consul

kubernetes help pages

mohammedrafi@NOC-RAFI:~$ sudo kubectl kubectl controls the Kubernetes cluster manager. Find more information at https://github.com/kubernetes/kubernetes. Basic Commands (Beginner): create Create a resource by filename or stdin expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service run Run a particular image on the cluster run-container Run a particular image … Continue reading kubernetes help pages