Solo Web Startup

A solo entrepreneur's 1st startup

  • @Refynr
  • My startup: Refynr.com
  • Me on LinkedIn
    • 1
      7 Dec 2010

      Essential notes on setting up a ColdFusion cluster

      • Edit
      • Delete
      • Tags
      • Autopost

      This info is probably somewhere else, but I want to put it here for others and myself because I seem to always forget when I'm setting up a ColdFusion Multi-server cluster on Linux (RedHat or CentOS 5.x):

      Remember that you're trying to connect your Web Server (Apache) to the cluster, and not an individual instance of CF. So, you must do things in the correct order:

      1. When installing ColdFusion, of course choose the Multi-server installation.
      2. Then, do not connect to the Web Server during installation
      3. From the cfusion instance (port 8300), create new CF instances that you want to put in your cluster
      4. Next, create the cluster and put those instances into that cluster
      5. Go to your command line and make sure the httpd-devel is installed on the server: yum install httpd-devel
      6. Stop Apache: service httpd stop
      7. Make the connection from Apache to that new cluster: /opt/jrun4/bin/wsconfig -cluster cluster_name_here -coldfusion -ws Apache -dir /etc/httpd/conf -v
      8. Verify it's all running with: /opt/jrun4/bin/wsconfig -list -host localhost -v
      9. To watch requests hit different instances:
        1. stop all instances: /opt/jrun4/bin/jrun -stop
        2. start each instance in the cluster in separate terminal (or putty) windows: /opt/jrun4/bin/jrun -nohup -start -childVM instance1
        3. when each one starts up, you should see a bunch of startup text about the ClusterManager starting up
        4. hit the web server from a browser. If sticky sessions are turned off for your cluster, you should see the requests hit each server after each browser refresh.

      Hope it helps :)

      • views
      • Tweet
    • 5
      19 Apr 2010

      Auto-start Multiple CF instances on Linux

      • Edit
      • Delete
      • Tags
      • Autopost
      Want your ColdFusion 9 Enterprise multiple instances on Linux to automatically start?  Out of the box, it seems CF 8 & 9 are not set up to do this automatically. 

      1) the permissions were wrong. Even though I installed CF to be run as "nobody", some aspects need root access, so the "RUNTIME_USER" may need to be root or have root permissions. This is a little over my head, but suffice to say it didn't run CF instances properly as "nobody", but was fine with "root".

      2) as you add new CF instances, the script (at /etc/init.d/coldfusion9multi on RedHat) doesn't get updated for you. You must manually add the new instances to the script after you add the instances in the CF Administrator.  

      Here's my /etc/init.d/coldfusion9multi script, which also shows how to auto-start Verity and SOLR at the same time.  Hope it helps.

      #!/bin/sh

      # chkconfig: 345 90 14

      #
      # Start ColdFusion 9 Multiserver instances + search services
      #
      # Because this is a start up script, and will be run by root, we use root
      # user to run these services

      CF_DIR="/data/jrun4"
      #RUNTIME_USER=""nobody""
      RUNTIME_USER=""root""

      # 1.0/Initial
      #
      ##

      if [ ${1:-noset} = "stop" ]; then
        su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfusion"
        su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfinstance_01"
        su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfinstance_02"
        su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfinstance_tasks01"
        su $RUNTIME_USER -c "$CF_DIR/verity/bin/cfsearch stop"
        su $RUNTIME_USER -c "$CF_DIR/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/solr/cfsolr stop"
        exit 0
      fi

      su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start cfusion >& $CF_DIR/logs/cfusion-event.log &"
      su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start -nohup -childVM cfinstance_01"
      su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start -nohup -childVM cfinstance_02"
      su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start -nohup -childVM cfinstance_tasks01"
      su $RUNTIME_USER -c "$CF_DIR/verity/bin/cfsearch start"
      su $RUNTIME_USER -c "$CF_DIR/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/solr/cfsolr start"


      Aaron Longnion
      Director of Internet Technology
      www.PeopleXS.com
      www.Twitter.com/aqlong
      www.peoplexs.com/communities/nl/

      • views
      • Tweet
    • 0
      19 Jan 2010

      Force RPM install of MySQL over old version

      • Edit
      • Delete
      • Tags
      • Autopost

      I'm not sure if this is smart in all situations, but if you have a borked version of MySQL (5.0 in my case), and want to install a higher version of it, you can use these commands in Linux (RHEL in my case) to force installation on the server- and client- RPM files, assuming those files are in the current directory:

      rpm -ivh MySQL-* --aid --force --nodeps --replacefiles

      Aaron Longnion
      Director of Internet Technology
      www.PeopleXS.com
      www.Twitter.com/aqlong
      Join the PeopleXS Community at www.peoplexs.com/communities/nl/


      • views
      • Tweet
    • Search

    • Sites I Like

      • Sean Corfield's blog
      • Filter Twitter & Facebook w/ Refynr
      • Raymond Camden's ColdFusion Blog
      • Aaron West's Blog
      • Ben Nadel's blog
      • A Smart Bear blog
      • IttyBiz blog
      • Charlie Arehart ColdFusion Consulting
    • Tags

      • refynr
      • ColdFusion
      • startup
      • Twitter
      • entrepreneur
      • social media
      • facebook
      • railo
      • Jobs
      • cloud computing
      • mysql
      • programming
      • social networks
      • legacy code
      • cfml
      • jquery
      • marketing
      • video
      • Developer
      • Holland
      • design
      • logo
      • rackspace
      • LinkedIn
      • Subversion
      • crowdsource
      • googleplus
      • security
      • sql
      • Peoplexs
      • SEO
      • Verity
      • adobe
      • conferences
      • openbd
      • radio
      • redhat
      • regex
      • Balsamiq
      • Ben Forta
      • CFBuilder
      • CFUG
      • Napkee
      • SOLR
      • SOTR
      • air
      • android
      • austin
      • beta
      • blog
      • bufferapp
      • centos
      • cfeclipse
      • chrome
      • clustering
      • css
      • curation
      • customer service
      • database
      • dutch
      • feedback
      • filter
      • filtering
      • funding
      • git
      • gmail
      • google
      • humor
      • i18N
      • iphone
      • jQM
      • java
      • jrun
      • json
      • microsoft
      • mobile
      • movies
      • mxunit
      • nosql
      • ocfs
      • open office
      • pitch
      • public speaking
      • rhel
      • scalability
      • sql server
      • svn
      • ui
      • unit testing
      • ux
      • web
      • webapp
      • website
      • websockets
      • windows
      • work
      • youtube
    • Archive

      • 2012 (6)
        • February (4)
        • January (2)
      • 2011 (57)
        • September (2)
        • August (1)
        • July (4)
        • June (3)
        • May (9)
        • April (5)
        • March (14)
        • February (8)
        • January (11)
      • 2010 (66)
        • December (13)
        • November (11)
        • October (7)
        • September (8)
        • August (5)
        • July (2)
        • June (2)
        • May (2)
        • April (7)
        • March (3)
        • February (1)
        • January (5)
      • 2009 (21)
        • December (7)
        • November (5)
        • October (3)
        • September (5)
        • August (1)
    • Obox Design
  • Solo Web Startup

    Web developer/architect turned solo web entrepreneur

    324925 Views
  • Get Updates

    Subscribe via RSS
    TwitterTwitterFacebookPageFacebookLinkedInFriendfeedDelicious