Caché System Administration Guide - InterSystems Documentation
Caché System Administration Guide - InterSystems Documentation
Caché System Administration Guide - InterSystems Documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Using <strong>Caché</strong> on UNIX, Linux, and Mac OS X<br />
• Internal <strong>Caché</strong> system group ID — a special <strong>Caché</strong> internal effective group ID, which also has<br />
all privileges to all files and executables in the installation. For maximum security, no actual users<br />
should belong to this group (cacheusr is the default).<br />
• Internal <strong>Caché</strong> user ID — the effective user ID for processes started by the superserver and Job<br />
servers. Again, for maximum security, no actual users should have this user ID (cacheusr is the<br />
default).<br />
6.2 Startup on UNIX<br />
There are three (3) resources a <strong>Caché</strong> instance uses to control starting, stopping, and creating new<br />
processes:<br />
1. The cache.ids file in the install-dir\mgr directory.<br />
2. The key identifier information for the shared memory allocated for the running instance.<br />
3. The shared memory itself.<br />
This release of <strong>Caché</strong> uses additional resources to manage these basic resources, as well as to prevent<br />
instances from running concurrently on different nodes, or starting concurrently on a single node.<br />
6.2.1 Shared Memory Object<br />
The shared memory identifiers are kept in a memory-mapped shared object (an operating system<br />
internal data structure that may or may not be backed by a file in the file system). This object is not<br />
generally visible to users of the system (HP/UX is the one exception). It is referred to as the ids shared<br />
memory object. The purpose of this object is to hide the resource that contains the shared memory<br />
identifiers so that it is not as susceptible to accidental corruption or deletion.<br />
6.2.2 Daemon Resource Locks<br />
In addition, <strong>Caché</strong> uses advisory file locking to prevent multiple startups of the same instance on different<br />
machines. With advisory file locking, a single lock file (in this case, the file clock in the<br />
install-dir\bin directory) may be used to exclusively lock multiple resources. The Control Process,<br />
Write daemon, and Journal daemon each lock a separate section of the lock file. If this section of the<br />
clock file is already locked, startup terminates. The locks held by the different daemons are called<br />
Daemon Resource Locks.<br />
A file lock is held by a process until the process terminates. Thus if any lock is held, it indicates that<br />
some daemon process on some node is running. It does not indicate, however, whether or not the<br />
instance is healthy and running normally.<br />
72 <strong>Caché</strong> <strong>System</strong> <strong>Administration</strong> <strong>Guide</strong>