If you run PeopleSoft applications on Windows, then you’ve probably been annoyed at one time or another by the way that the services are setup. Not the web layer so much as the application server and process scheduler. I know I have gotten annoyed with it 🙂
There’s a few problems with the way it works out of the box.
The first problem is that when you setup the services (option 3 in psadmin – “Services Setup”), you have to choose which application server domains and process scheduler databases that you want to be started. There’s no way to separate multiple application server domains or even keep an application server and a process scheduler. It all gets installed as one Windows service called “PeopleSoft c:pt848” (or wherever your PS_HOME was installed).
Why would you want them separated? Well, it’s nice to be able to bounce things independently. Suppose you change some process scheduler configuration and you need to restart the process scheduler. You don’t want to annoy all of your online users. Or maybe you have application server domains that serve different purposes. When we install our software at customer sites, we almost always see shops with DEV, QA, UAT, etc. installed in a single PS_HOME directory. If your developers need to bounce an appserver, then you don’t want them interfering with your testers. Most people do keep production domains separated from the rest though.
Of course, even with the services setup, you can still go into psadmin (or can you?) and bring domains up and down, but lots of places don’t want non-administrators to be able to reconfigure anything. Unfortunately psadmin does not have a mode where you can grant access to start and stop a domain, but not change the configuration of it.
With separate services, you can not only start and stop them independently, you can also use tools like sc (downloadable from Microsoft as part of the Windows Server 2003 Resource Kit). Then you could allow your remote developers the ability to reboot their dev domain with out granting them access directly to the server at all.
Another problem is that the psntsrv.exe process that launches psadmin to start or stop a domain does not integrate well with either the Windows Services APIs or with psadmin itself. If a domain takes a long time to boot for some reason, you’ll end up getting an error about the service failing to start, even though psadmin is still starting things.
As long the domain ends up starting properly, this isn’t such a big deal, but if the domain fails to boot for some reason after Windows thinks that it has failed to start, then there’s no automatic corrective action that can be taken. Also, psntsrv.exe relies purely on the exit status of psadmin.exe to decide whether a domain started or not. Unfortunately, this is not 100% reliable. Of course, if you can’t trust the service status when the service is just a single domain, you certainly can’t trust it when it is managing multiple app server domains and process schedulers under a single service definition.
Another nice thing that you can do with separate services and service statuses that you can trust is take advantage of Windows service dependendencies. David Kurtz explains this well over on his weblog (including some caveats about when not to use them).
An example use might be having your DEV appserver domain wait to start until your DEV database service available. That particular example presumes that you have the appserver and database server on the same physical box and that you’re running a database engine that will create separate services for each database (such as Oracle), but you get the idea.
Rather than sit around complaining, we at Grey Sparling went ahead and built something that addresses these issues(1). The Grey Sparling Services Manager solves these problems as well as providing a few other handy features.
We have a Flash demo of the Services Manager in action, you can take a look at a short Flash demo here.
If you’d like to get a copy, we’re making it available free to all Grey Sparling customers. If you’re not a Grey Sparling customer yet (and why aren’t you?) and you’d like to take it for a test spin, we can have an evaluation version up and running in your environment in about 5 minutes. It’s really that straightforward. Just shoot us an email or give us a call.
1) We actually built this a few months back, but this posting has been sitting in the queue for a bit.
Labels: 2007, Sysadmin, Windows