March 2009 Archives

Chef: Cook your own automated environment

Posted by Edmund Haselwanter on Mar 13, 2009
Tags: chef, environment 2.0, iclassify, opschef, opscode, opscookbook, puppet
Technorati Tags: , , , , , ,

There is a new kid on the configuration management block Chef from Opscode. Here is a blog post about Puppet vs. Chef.

Chef is kind of Puppet with integrated iClassify and a rubyish configuration DSL. No wonder, Adam Jacob joined forces on Chef.

You can find it on github

Tomcat: Too many open files

Posted by Edmund Haselwanter on Mar 13, 2009
Tags: java, tomcat
Technorati Tags: ,

the symptom

If tomcat just respondes with HTTP 500 and you find something like

   1  
   2  org.apache.tomcat.jni.Error: Too many open files
   3         at org.apache.tomcat.jni.Socket.accept(Native Method)
   4         at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1110)
   5         at java.lang.Thread.run(Thread.java:619)
   6  Mar 12, 2009 12:01:34 PM org.apache.tomcat.util.net.AprEndpoint$Acceptor run
   7  SEVERE: Socket accept failed

in catalina.out

Continue Reading…

Setting up an SSL secured Webserver with CentOS

Posted by Edmund Haselwanter on Mar 09, 2009
Tags: apache, apache2, centos, ssl, virtualhost
Technorati Tags: , , , ,

Here is a very good HOWTO for setting up an SSL secured Webserver with CentOS

ensure there is no ssl.conf for the default VirtualServer in /etc/httpd/conf.d/ or incorporate your changes there.

Use EBS on EC2 Centos 5.2 and snapshot with cron to S3

Posted by Edmund Haselwanter on Mar 06, 2009
Tags: amazon, aws, cloud, cron, ebs, ec2, environment 2.0
Technorati Tags: , , , , , ,

Create the volume and assign it to your instance

Attach it to your Centos 5.2 instance

yum install xfsprogs

according to Thread: Debian Lenny and XFS causes kernel panic: Suggested Workaround

mkfs.xfs -l version=1 /dev/sdh

insert into /etc/fstab

/dev/sdh /vol/shared xfs noatime 0 0

mount the volume

mount /vol/shared

Continue Reading…