Apache1.3.31 + resin3.0.8

  Has been on the resin is not a good impression.    Memory will always lead to hoarding performance has been gradually declining, regular restart才行needs.    Or to support it, after all, does not need the money tomcat ^ _ ^.    Below I will be simple, I set out to do with resin load balancing configuration.    Since online Many articles are said resin2.x configuration.    Resin3 configuration changes and relatively large.    In my experience as: 

  1.   One more configuration files app-default.xml.    It circumstances and apache configuration similar, all wrote in a document.    Of course, can also use the default in the main configuration file in resin.conf    Designated. 
  2.   Control of the log files: the use of the function of the log rotational basis. 

  Below sets out how the simple configuration load balance: 

  Installation: 

  1. Compiler apache:. / Configure - enable-module = so - prefix = / usr / local / apache & & make & & make install 

  2. Installed resin: resin extract packets to / usr / lcoal / resin directory, and then resin into apache (. / Configure - with-apxs = / usr / local / apache / bin / apxs & & & & make make install) 

  3. Definition of the environment variables: 

  Below content can be kept in / etc / profile or users. Profile, or directly on the / usr / local / resin / bin / httpd.sh the beginning. 

  JAVA_HOME = / usr / java 
  Export JAVA_HOME 

  RESIN_HOME = / usr / local / resin 
  Export RESIN_HOME 

  CLASSPATH = / usr / java / lib 
  Export CLASSPATH 

  4. Apache configuration: 

  Need to configure DocumentRoot behind resin, as well as load balancing relevant configuration, before this, I need to assume a four cluster, ip 10.10.22.1,10.10.22.2,10.10.22.3,10.10.22.4 respectively.    After a good card set, according to what I have written is the case, in the final httpd.conf has three phrases: 

  LoadModule caucho_module / usr / local / apache-mysql / libexec / mod_caucho.so 
  ResinConfigServer localhost 6802 
  CauchoStatus yes 

  Only the second sentence read: 

  ResinConfigServer 10.10.22.1 6802 
  ResinConfigServer 10.10.22.2 6802 
  ResinConfigServer 10.10.22.3 6802 
  ResinConfigServer 10.10.22.4 6802 

  This configuration and the resin2.x is different.    Ok!    Apache basic configuration it. 

  5. Resin configuration: 

  <http Port='80'/> 

<cluster>
  <srun Server-id="a" host="10.10.22.1" port="6802" index="1"/> 
  <srun Server-id="b" host="10.10.22.2" port="6802" index="2"/> 
  <srun Server-id="c" host="10.10.22.3" port="6802" index="3"/> 
  <srun Server-id="d" host="10.10.22.4" port="6802" index="4"/> 
  </ Cluster> 
  Other configurations in accordance with their own needs! 

  6. Activated resin and apache: the use of load balancing technology, the launch is not just a play a http.sh.    Can write a script: 

  #! / Bin / sh 
  / Usr / local / apache / bin / apachectl start 
  / Usr / local / resin / bin / httpd.sh-pid / server a start-usr/local/resin/srun1.pid 
  / Usr / local / resin / bin / httpd.sh-pid / usr/local/resin/srun2.pid-server b start 
  / Usr / local / resin / bin / httpd.sh-pid / usr/local/resin/srun3.pid-server c start 
  / Usr / local / resin / bin / httpd.sh-pid / server d start-usr/local/resin/srun4.pid 

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Releated Articles

  • Popuklar Articles

0 Comments to “Apache1.3.31 + resin3.0.8”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.