Sha256: 0d8ae7d471b535e23e9cdae57062b2b74021ac34440128315173ab531ea93f38

Contents?: true

Size: 1.45 KB

Versions: 6

Compression:

Stored size: 1.45 KB

Contents

# Passenger Agent

This directory contains the source code of the Passenger agent. The Passenger agent is a single executable that consists of multiple parts. Within each subdirectory, you will find the source code of that particular part.

## Important parts

The most important parts are:

 * The Watchdog is the main Passenger process. It starts the Passenger Core, and restarts them when it crashes. It also cleans everything up upon shut down.
 * The Core performs most of the heavy lifting. It parses requests, spawns application processes, forwards requests to the correct process and forwards application responses back to the web server.

## Minor parts

 * SpawnEnvSetupper is a tool used internally by `Core/SpawningKit/` to spawn application processes. See the README in that directory for more information.
 * SystemMetrics is a tool that shows system metrics such as CPU and memory usage. The main functionality is implemented in src/cxxUtils/SystemMetricsCollector.h. This tool is mainly useful for developing and debugging SystemMetricsCollector.h.
 * TempDirToucher is a tool used internally by Passenger Standalone to keep a temporary directory's timestamp up-to-date so that it doesn't get removed by /tmp cleaner daemons.

## Shared code

There is also code that is shared between the different agent parts. That code is located in `Shared`. Unlike `src/cxx_supportlib`, which is meant to be usable outside Passenger, the code in `Shared` is Passenger-specific.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
passenger-5.3.5 src/agent/README.md
passenger-5.3.4 src/agent/README.md
passenger-5.3.3 src/agent/README.md
passenger-5.3.2 src/agent/README.md
passenger-5.3.1 src/agent/README.md
passenger-5.3.0 src/agent/README.md