Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

Sunday, July 10, 2011

CouchDB: Document Based Database

Did you notice that screenshot, we have something like metadata here !!!

A friend of mine (Amr Gawish) told me today about a new database engine project which I found interesting, it is called CouchDB which is a document oriented database. It is about semi-structured content as I read from Apache (for me it is about unstructured content) which manages and stores documents.

The interesting part about CouchDB is that you can use JSON and AJAX to work with database, so Google Web Toolkit will fit here too :D

The important questions, is that which future waits CouchDB? Is it practical?

Tuesday, November 9, 2010

Oracle UCM 11g clustered (continued)

I forgot to mention two things about clustering in my previous post.

- After creating a domain on the first physical machine, and you want to transfer the configuration to the other physical machine, do the following:

On the first machine

$ cd /u01/oracle/middleware/user_projects/domains/
$ ../../wlserver_10.3/common/bin/pack.sh -managed=true -domain=my_domain -template=my_domain.jar template_name="my_domain"
$ scp my_domain.jar oracle@node2.mydomain.com:/u01/oracle/middleware/user_projects/domains

on the second machine

$ cd /u01/oracle/middleware/user_projects/domains/
$ ../../wlserver_10.3/common/bin/unpack.sh -domain=my_domain -template=my_domain.jar

Note, when configuring weblogic machine on linux,  it is better to use Unix Machine (you can accept the defualts)

- Now you have UCM clustered on two machines, so what about load balancing? you have several options like using another weblogic instance to do load balancing, but in my case I used apache HTTP server for doing that (this was because I wanted to minimize licenses required)

To do load balancing
- Download weblogic plugin for Apache from http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
- Ensure that Apache is up and working on the server
- Extract the plugin in a directory on  your server
- add the following to httpd.conf (I assume here we are installing on linux)


#Weblogic Proxy Plugin
LoadModule weblogic_module /root/wlsplugin/lib/mod_wl.so

#Weblogic Proxy Plugin

SetHandler weblogic-handler
WebLogicCluster node1.mydomain.com:16200,node2.mydomain.com:16200


I hope you will have a good picture about how to accomplish that