charlie arehart independent consultant charlie@carehart · charlie arehart independent consultant...

16
Charlie Arehart Independent Consultant [email protected] P d d Jl 23 2009 Produced July 23, 2009

Upload: others

Post on 28-May-2020

14 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Charlie ArehartIndependent Consultant

[email protected] d d J l 23 2009Produced July 23, 2009

Page 2: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

IntroductionWalkthrough an Install (tips along the way)Other GotchasOther ConsiderationsResources

2

Page 3: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Independent Consultant since Apr 2006

12 yrs CF experience (25 in Enterprise IT)Web home at www.carehart.org•Host ~300 blog entries 70+ articles 80+

•Member, Adobe Community Experts•Certified Adv CF Developer (4-8), Cert. Adobe

Instructor•Writer in FAQU, Adobe DevCenter,

Host 300 blog entries, 70+ articles, 80+ presentations

•UGTV: recordings of 300+ presentations by ~200 speakers

•CF411 com - 1000+ tools/resources inWriter in FAQU, Adobe DevCenter, CommunityMX, CFDJ, more

•Contributor to all 3 Ben Forta CF8 books•Run the 1800-member Online ColdFusion

Meetup (coldfusionmeetup.com)

•CF411.com 1000+ tools/resources in 130+ categories

•Consulting: available for troubleshooting, tuning; training•Remote or on-site

•Living in Alpharetta, Georgia (Atlanta)•Remote or on-site

3

Page 4: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

One of three forms of deployment available at i t ll ti f CF E t i /D linstallation of CF Enterprise/Developer◦ Technically called Multiserver◦ Others are Server and J2EE (war/ear)◦ (CF Standard supports only Server mode)Installs full version of JRun 4, and implements CF under itCF under it◦ Can have multiple “instances” of CF implemented

under this one JRun 4A il bl i CF 6 t h i llAvailable since CF 6, technically◦ Improved in 6.1◦ Improved significantly in 7, adding Enterprise Mgrp g y g p g

4

Page 5: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Instances are independent of each otherO d hil th t◦ One can go down while another stays up

◦ Admin settings are unique to instanceCould have different instances for different

/ iapps/sites◦ One for app/site a, another for app/site b◦ Or one for dev and another for prod

Beware, though. Both are still on same machineOr could implement duplicate apps across instances◦ and add cluster/load balancing and replicationBest of all for some, instances reduce license cost

5

Page 6: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Let’s walk through an install◦ With tips, discussion along the way

6

Page 7: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Might want to regard cfusion instance as just for creating new instances◦ Don’t need to keep it running all the time thenIf not using the JRun admin can stop/disableIf not using the JRun admin, can stop/disable thatCan install to built-in web server initiallyCan install to built in web server initially◦ And then add connection to external web server◦ Indeed, when creating new instances, this is

dassumed

7

Page 8: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Placement of CF templates◦ For internal CF web server deep inside instance◦ For internal CF web server, deep inside instance

[JRun4]\servers\[instancename]\cfusion.ear\cfusion.war◦ For external web server, wherever you wantFinding logsFinding logs◦ Equivalent of [CF]\logs are deep inside instance [JRun4]\servers\[instancename]\cfusion.ear\cfusion.war\WEB-INF\cfusion\logs

◦ Equivalent of [CF]\runtime\logs are in instance◦ Equivalent of [CF]\runtime\logs are in instance [JRun4]\logs

Can share admin settings among instances◦ Either using CAR archive featureEither using CAR archive feature◦ Or by setting in cfusion instance, which is used as

template

8

Page 9: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Beware: JVM.config is shared by all instances◦ Changing memory size for instance

No interface in CF Admin, must be done in [jrun4]\bin\jvm.config[j ]\ \j gSo if set to 1 gig, multiply that by running instances

◦ Also impacts if debugging is enabledMay find that if one instance goes down others can’tMay find that if one instance goes down, others can’t come up due to the first instance locking the debugger port

Sh ld ll id tti h i t t h◦ Should really consider setting each instance to have own jvm.config

See resources on next page

9

Page 10: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Discussions on handling/changing instances sharing same jvm.config◦ http://kb2.adobe.com/cps/182/tn_18206.html◦ http://mkruger cfwebtools com/index cfm/2006/4◦ http://mkruger.cfwebtools.com/index.cfm/2006/4

/17/multiserver◦ http://www.n8williams.com/devblog/coldfusion/m

l i l ldf i i i h jultiple-coldfusion-instances-with-separate-jvm-configs-as-windows-services◦ http://www.placona.co.uk/blog/post.cfm/creating-p // p / g/p / g

new-coldfusion-8-instances-the-easy-way-appendix

10

Page 11: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

CFSTAT and Perfmon integration not offered◦ Available only in Server mode of deploymentBe careful about setting scheduled tasks in multiple instances unintentionallymultiple instances unintentionally◦ Recall that things entered in cfusion admin are

propagated to new instances on creationCF licensing in a Virtual Machine◦ not specific to instances, but may be of interest

S◦ See http://john.beynon.org.uk/2008/04/04/coldfusion-801-eula-changes/

11

Page 12: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

Using CF8 Multiserver MonitorS t 4 f Ad b D t ti l i th◦ See part 4 of my Adobe Devnet article series on the Server Monitor

http://www.carehart.org/blog/client/index.cfm/2008/7/30/45page server monitor guide45page_server_monitor_guide

Using sandbox security◦ See my 2-part Adobe Devnet series, starting at

http://www carehart org/articles/#2002 11http://www.carehart.org/articles/#2002_11Beware need to make manual jvm.config change

See discussion in Adobe Install manual, next pageMay want to investigate the feature to deployMay want to investigate the feature to deploy war/ear packages into instances◦ Again, see the docs for more

12

Page 13: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

I have a blog entry pointing to several Adobe resources◦ “Resources for getting into the Multiserver (multiple

instance) implementation of CF”http://www.carehart.org/blog/client/index.cfm/2007/7/5/getting_into_multi_instance_implmentation_of_CFOr http://bit.ly/cfinstances

◦ Comments also point to non-Adobe resourcesSee also CF docs◦ Configuring and Administering ColdFusion 8 Chapter 8◦ Configuring and Administering ColdFusion 8, Chapter 8◦ Installing and Using ColdFusion 8, Chapter 4Beware old resources referring to 6/6.1

13

Page 14: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

14

Page 15: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

So, did you learn something?What we covered:◦ Introduction

Walkthrough an Install (tips along the way)◦ Walkthrough an Install (tips along the way)◦ Other Gotchas◦ Other Considerations◦ ResourcesHope the talk was helpful

15

Page 16: Charlie Arehart Independent Consultant charlie@carehart · Charlie Arehart Independent Consultant charlie@carehart.org Pd dProduced J l 23 2009July 23, 2009 `Introduction ... `Using

I’d really appreciate your feedback◦ Feel free to share it now ☺◦ Or at http://carehart.org/feedback/◦ Or at charlie@carehart org◦ Or at [email protected] for ColdFusion troubleshooting, setup, implementation consultingp p g◦ Also other developer productivity coaching, system

admin and tuning support, and more◦ Remote or on site◦ Remote or on-site◦ For as little as days, hours, even 15 minutes◦ http://carehart.org/consulting/

16