Funky world of Juha

Bizarre and funky world of Juha

Installing Memcached graphs to munin July 15, 2011

Filed under: Memcached,Servers — juhq @ 3:01 pm

Munin is a great statistics tool that every developer and website owner should know and user.

Today I was adding statistics for memcached, for every plugin that I could find from Munin Exchange and it didn’t take too long to realize that typing all the commands by hand, to 8 different servers, is going to take for ever.

So I copied all the steps into my notepad (oldskool) and combined the steps into easily copy & pasted steps.

Before you can install these plugins, you need to have perl-Cache-Memcached installed on the server.

As I’m using CentOS, the command is yum install perl-Cache-Memcached

Now for the interesting part of installing every memcached plugin to munin easily.

wget http://exchange.munin-monitoring.org/plugins/memcached_hits_/version/1/download && mv download memcached_hits && cp memcached_hits /usr/share/munin/plugins/ && chmod 777 /usr/share/munin/plugins/memcached_hits && ln -s /usr/share/munin/plugins/memcached_hits /etc/munin/plugins/memcached_hits_127_0_0_1_11211 && ls -al /etc/munin/plugins && /usr/sbin/munin-run memcached_hits_127_0_0_1_11211
wget http://exchange.munin-monitoring.org/plugins/memcached_bytes_/version/1/download && mv download memcached_bytes && cp memcached_bytes /usr/share/munin/plugins/ && chmod 777 /usr/share/munin/plugins/memcached_bytes && ln -s /usr/share/munin/plugins/memcached_bytes /etc/munin/plugins/memcached_bytes_127_0_0_1_11211 && ls -al /etc/munin/plugins && /usr/sbin/munin-run memcached_bytes_127_0_0_1_11211
wget http://exchange.munin-monitoring.org/plugins/memcached_requests_/version/1/download && mv download memcached_requests && cp memcached_requests /usr/share/munin/plugins/ && chmod 777 /usr/share/munin/plugins/memcached_requests && ln -s /usr/share/munin/plugins/memcached_requests /etc/munin/plugins/memcached_requests_127_0_0_1_11211 && ls -al /etc/munin/plugins && /usr/sbin/munin-run memcached_requests_127_0_0_1_11211
wget http://exchange.munin-monitoring.org/plugins/memcached_traffic_/version/1/download && mv download memcached_traffic && cp memcached_traffic /usr/share/munin/plugins/ && chmod 777 /usr/share/munin/plugins/memcached_traffic && ln -s /usr/share/munin/plugins/memcached_traffic /etc/munin/plugins/memcached_traffic_127_0_0_1_11211 && ls -al /etc/munin/plugins && /usr/sbin/munin-run memcached_traffic_127_0_0_1_11211
wget http://exchange.munin-monitoring.org/plugins/memcached_items_/version/1/download && mv download memcached_items && cp memcached_items /usr/share/munin/plugins/ && chmod 777 /usr/share/munin/plugins/memcached_items && ln -s /usr/share/munin/plugins/memcached_items /etc/munin/plugins/memcached_items_127_0_0_1_11211 && ls -al /etc/munin/plugins && /usr/sbin/munin-run memcached_items_127_0_0_1_11211
wget http://exchange.munin-monitoring.org/plugins/memcached_connections_/version/1/download && mv download memcached_connections && cp memcached_connections /usr/share/munin/plugins/ && chmod 777 /usr/share/munin/plugins/memcached_connections && ln -s /usr/share/munin/plugins/memcached_connections /etc/munin/plugins/memcached_connections_127_0_0_1_11211 && ls -al /etc/munin/plugins && /usr/sbin/munin-run memcached_connections_127_0_0_1_11211

/etc/init.d/munin-node restart

What this will do is that it’ll download the file, rename it, copy it to proper folders, add proper properties, create symbolic link, then list all the symbolic links, test that the plugin works and finally it will restart munin.

 

 

This should be easily converted into simpler and smaller shell script. If you’re thinking of creating a shell script or have a better solution, please feel free to leave a comment 🙂

Advertisements
 

Lead Software Engineer (PHP, MySQL, Memcache) May 2, 2011

Filed under: Jobs,Memcached,MySQL,PHP — juhq @ 8:28 am

Job Description

DealDash – Social Game-Shopping is looking for their Lead Software Engineer. DealDash is an extremely fast growing high-tech startup based in Helsinki and Silicon Valley. Our mission is to make shopping fun through our innovative game-like auction model. With currently more than 150,000 registered users in the US and a dozen servers DealDash has a constant need for increasing scalability and performance. With several upcoming patents; innovation and creativity is a key driver in DealDash´s ongoing product development.

Job description:
We are looking for an exceptionally intelligent, talented and enthusiastic Lead Software Engineer to drive development of our web-application. You will get to work on and deliver an application that will be used by millions of users. You are a self starter eager to make a mark for yourself. You have hands on experience of working in a small agile team / startup and can develop your skills. The company is based in Helsinki, Finland and Sunnyvale, CA.

You should be well connected within the software development community either internationally or locally so that you are able to seek advice from peers in regards to solving complex problems. You should have a healthy strong working habit and be willing to put in extra hours when needed. You will lead our small development team and work closely with the founder and Chief Coder of the company in planning and designing systems that scale and allow us to continue growing our business around the world.

Skills:
• Generalist software engineer: Expertise building scalable systems and algorithms
• Expertise in working with PHP and MySQL
• Experience in working with Memcache
• Experience in working with various PHP frameworks
• Understanding of AJAX, CSS, JavaScript & jQuery
• Experience working with large amounts of data
• Experience working with Facebook or E-Commerce applications a plus

Travel:
Work based at our offices in the centre of Helsinki, Finland (Capital of Nokia)
Kamppi – Autotalo, however you will from time to time be able to travel to our office in Silicon Valley to stay updated on current ongoing developments in the coding community.

Compensation: Includes very competitive salary and early-stage stock options.

Desired Skills & Experience

• Generalist software engineer: Expertise building scalable systems and algorithms
• Expertise in working with PHP and MySQL
• Experience in working with Memcache
• Experience in working with various PHP frameworks
• Understanding of AJAX, CSS, JavaScript & jQuery
• Experience working with large amounts of data

• Experience working with SCRUM

• Experience working with Facebook or E-Commerce applications a plus

• 5+ years web development experience
• 3+ with PHP/MySQL/Apache
• Experience with profiling (e.g. xdebug), load simulation (e.g Jmeter), Linux optimization, database (MySQL) optimization
• Solid understanding of scalable web architectures, queuing and partitioning.
• Solid experience with Subversion, JavaScript, CSS and OO programming
• Agile development experience desirable (XP/Scrum).
• Knowledge of PHPUnit and test-driven development
• Knowledge of open standards
• Bachelors degree or higher in Computer Science or similar/relevant field preferred
• Strong product sense and an interest in building web applications
• Entrepreneurial spirit
• High levels of creativity
• Ability to create specs for projects and to manage their progress
• Ability to handle high pressure / high stress situations

Company Description

DealDash is an extremely fast growing social game-shopping marketplace where more than 150,000 US based shoppers come to bid and compete for some of the best deals on brand new products from iPads to mountain bikes and even high-end holiday packages. DealDash is one of the leading pioneers in the current revolution taking place – the gamification of online shopping. DealDash combines proven game-mechanics with discount shopping to create an insanely fun and thrilling discount shopping experience.

DealDash has received several awards for being one of the most interesting and innovative companies to come from the Nordic markets. DealDash continues its exponential growth in a soon-to-be $1Bn+ market. DealDash is venture capital backed with an extremely strong group of investors from both the Europe and the United States. The team behind DealDash work very hard to provide social game-shoppers with the best possible experience and to build a better product that is competitors through new innovation.

Join us to become a part of an extremely fast growing international high-tech startup company.

Apply today!

http://lnkd.in/U42WSZ