github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/fleetspeak/src/client/daemonservice/proto/fleetspeak_daemonservice/config.proto (about) 1 syntax = "proto3"; 2 3 package fleetspeak.daemonservice; 4 5 import "google/protobuf/duration.proto"; 6 7 option go_package = "github.com/google/fleetspeak/fleetspeak/src/client/daemonservice/proto/fleetspeak_daemonservice"; 8 9 // The configuration information expected by daemonservice.Factory in 10 // ClientServiceConfig.config. 11 message Config { 12 repeated string argv = 1; 13 14 // If set, process will be killed after this much inactivity. Any message to 15 // or from the process, and any stdin/stderr output counts as inactivity. 16 google.protobuf.Duration inactivity_timeout = 2; 17 18 // If set, start the process only when there is a message for it to work on. 19 // Forced to true when inactivity timeout is set. 20 bool lazy_start = 3; 21 22 // By default, daemon services report resource usage every 10 minutes. This 23 // flag disables this if set. 24 bool disable_resource_monitoring = 4; 25 26 // How many samples to aggregate into a report when monitoring resource usage. 27 // If unset, defaults to 20. 28 int32 resource_monitoring_sample_size = 5; 29 30 // How long to wait between resource monitoring samples. If unset, defaults to 31 // 30. 32 int32 resource_monitoring_sample_period_seconds = 6 [deprecated = true]; 33 google.protobuf.Duration resource_monitoring_sample_period = 12; 34 35 // If set, Fleetspeak will kill and restart the child if it exceeds this 36 // memory limit, in bytes. 37 int64 memory_limit = 7; 38 39 // If set, Fleetspeak will monitor child's heartbeat messages and kill 40 // unresponsive processes. The values below should be set to configure the 41 // heartbeat monitoring. 42 bool monitor_heartbeats = 8; 43 44 // How long to wait for initial heartbeat. 45 int32 heartbeat_unresponsive_grace_period_seconds = 9 [deprecated = true]; 46 google.protobuf.Duration heartbeat_unresponsive_grace_period = 13; 47 48 // How long to wait for subsequent heartbeats. 49 int32 heartbeat_unresponsive_kill_period_seconds = 10 [deprecated = true]; 50 google.protobuf.Duration heartbeat_unresponsive_kill_period = 14; 51 52 // If set, we forward stderr and stdout data to the server as messages with: 53 // 54 // message_type="StdOutput" 55 // data=<fleetspeak.daemonservice.StdOutputData> 56 message StdParams { 57 string service_name = 1; // Service on the server to forward to. Required. 58 59 // A message will be sent when we have flush_bytes queued, or when we 60 // have bytes flush_time_seconds old. 61 int32 flush_bytes = 2; // Default and maximum value is 1MB. 62 int32 flush_time_seconds = 3; // Default is 60. 63 } 64 StdParams std_params = 11; 65 }