Offline Mode for the Parca Agent
Blog post from Polar Signals
Parca has introduced an Offline Mode for its agent, enhancing its utility in environments where network connectivity is unreliable or nonexistent, such as smartphones and autonomous vehicles. Traditionally, the Parca agent communicates with the backend over a network, sending stack traces of CPU-scheduled code for storage and analysis, but Offline Mode enables the agent to save this data locally. In this mode, every five seconds, stack IDs and full stacks are recorded in a file, which is periodically compressed and rotated to manage storage efficiently. These files, named using a timestamp and process ID, can later be uploaded to the backend from any device with network access using the same protocol as in online mode. This feature makes Parca more versatile, allowing it to be used in a broader range of computing environments by ensuring data persistence and reducing the dependency on constant network access.