Clone this repo:
git clone https://gist.github.com/c878be36494547e5ef014e64b12cd9fe.git
cd 08be6d6e7605a43fe52d1f201c2b47d8Start the docker stack:
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| Name: Flash | |
| Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc= | |
| if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676 | |
| Thank you! |
| #!/bin/bash | |
| MGMT_IP=$(ifconfig br-mgmt | grep 'inet addr:'| cut -d: -f2 | awk '{ print $1}') | |
| HOST=$(hostname -s) | |
| ADMIN_IP=$(hiera management_vip) | |
| PUB_IP=$(hiera public_vip) | |
| USER='masakari' | |
| PASS='masakari' | |
| DIR="$(dirname `readlink -f $0`)" |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
Reference https://docs.openstack.org/developer/manila/devref/cephfs_driver.html
Create all-in-one** CephFS/Ganesha/Manila setup using devstack in a CentOS7 machine similar to the one in the upstream gate, gate-manila-tempest-minimal-dsvm-cephfs-nfs-centos-7-nv
** Ceph server daemons (1 OSD, 1 MON, 1 MDS), NFS-Ganesha server, and manila-services all run in the same machine.
| #! /usr/bin/python | |
| print "\n*********************************************************************" | |
| print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version" | |
| import os | |
| import socket | |
| import hashlib | |
| import struct | |
| # get the host id and host name to calculate the hostkey | |
| hostid=os.popen("hostid").read().strip() | |
| hostname = socket.gethostname() |
| #!/bin/bash | |
| apt-get -y update | |
| apt-get -y install nginx-extras build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev | |
| wget -c https://openresty.org/download/openresty-1.9.15.1.tar.gz | |
| tar zxvf openresty-1.9.15.1.tar.gz | |
| cd openresty-1.9.15.1 | |
| ./configure \ | |
| --sbin-path=/usr/sbin/nginx \ | |
| --conf-path=/etc/nginx/nginx.conf \ |
| #!/bin/bash | |
| apt-get -y update | |
| apt-get -y install nginx-extras build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev | |
| wget -c https://openresty.org/download/openresty-1.11.2.1.tar.gz | |
| tar zxvf openresty-1.11.2.1.tar.gz | |
| cd openresty-1.11.2.1 | |
| ./configure \ | |
| --sbin-path=/usr/sbin/nginx \ | |
| --conf-path=/etc/nginx/nginx.conf \ |