Posts

Showing posts from November, 2006

Scripting

Have been thinking about learning a powerful script language for a while. I am not bad on Bash. Bash probably is the most guaranteed tool when you need a scripting language. You can find it on every machine these days. It definitly worth to spend sometime if you use *nix. Last night, I felt that I have to do something about my scripting skills. Walked up to my computer, did a quick search on google, before long, I found I need to choose one from Python and Ruby. Did 30 minutes reading, among these two languages, I decided I will learn Ruby. Why, here are the reasons. I live in Java world. Python use "indent" to mark the boundary, made me feel unsecure. I do web applications. Ruby on Rails is another attraction that Ruby have on me. Ruby's Completely OO. I am curious about what Ruby's OO looks like. IMO, to learn which one probably doesn't really matter. Ruby just happened fit in my knowledge base better. =============================================== After about

Spring framework, Hibernate and MySQL Replication

Image
Laterly we have our site grown to the stage that a single mysql server will not able to do the job anymore. That's something we realy like to see. The CPU usage had reached more then 90% at peak traffic time. MySQL even crashed a couple time when we were running an early version. 5.0.x. Don't remember what it was exactly. But when we upgrade to 5.0.24, it stopped crashing. It was also unacceptablely slow under the heavy loads. We need some heavy duty database solution. I have read a couple articals about mysql cluster. So my first thought is cluster. But when we ask our hosting company to set up a MySQL cluster, they suggested replication instead. Sometimes you just could not judge things by their name. Have run into the word "replication" a couple times in the mysql ref book. I miss judged the replication function. My sql does not like some other databases, this replication is real-time replication. To set up a master/slave replication system up is really a straight