GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing metpx.github.io — SR3 — Sarracenia 3.04.00rc1 documentation SR3sr3 Sarracenia CLI
SYNOPSISsr3 options action [ component/config … ] DESCRIPTIONSr3 is a tool to manage a fleet of daemons, whose output is mostly in log files. Sr3 allows one to start, stop, and inquire the status of configured Sarracenia flows. It is the primary command line entry point to Sarracenia 3 ( https://metpx.github.io/sarracenia/ ) When sr3 is started up, it reads the entire configuration tree, and the status of all flows can be queried with, for example sr3 status. When component/config is given it is to have sr3 operate on a subset of all the configurations present.
The command line has three major elements: * options * action * component/config A flow is a group of processes running using a common component/config. OPTIONSMost options are stored in configuration files referred to by the component/config indicated by the listing file, but on occasion, one may wish to use command line to override values in the configuration file. Options are defined in Sr3 Options (7) Refer to that manual page for a full discussion. There is one exception: -h (or --help) The help option is only available on the command line. It is used to get a prompt describing the subset of options available to override config file values. ACTIONSThe type of action to take. One of:
COMPONENTSThe Flow Algorithm is what is run by all sr3 processes. The flow algorithm’s behaviour is customized by options, some of which control optional modules (flowcallbacks) Each component has a different set of default option settings to cover a common use case.
CONFIGURATIONSWhen a component/configuration pair is specified on the command line, It is actually building the effective configuration from:
Settings in a default.inc include file (from the parent <component> directory) are read in after the default.conf and prior to <component>/<config>.conf. So this allows to override the values for the component chosen. Options specified in the configuration file override values in the components’ default.inc. NOTE: default.inc feature is currently not supported on C components (cpump,cpost) Options specified on the command line override configuration files. While one can manage configuration files using the add, remove, list, edit, disable, and enable actions, one can also do all of the same activities manually by manipulating files in the settings directory. The configuration files for an sr3 configuration called myflow would be here:
The top of the tree has ~/.config/sarra/default.conf which contains settings that are read as defaults for any component on start up. In the same directory, ~/.config/sarra/credentials.conf contains credentials (passwords) to be used by sarracenia ( CREDENTIALS for details. ) One can also set the XDG_CONFIG_HOME environment variable to override default placement, or individual configuration files can be placed in any directory and invoked with the complete path. When components are invoked, the provided file is interpreted as a file path (with a .conf suffix assumed.) If it is not found as a file path, then the component will look in the component’s config directory ( config_dir / component ) for a matching .conf file. If it is still not found, it will look for it in the site config dir (linux: /usr/share/default/sarra/component). Finally, if the user has set option remote_config to True and if he has configured web sites where configurations can be found (option remote_config_url), The program will try to download the named file from each site until it finds one. If successful, the file is downloaded to config_dir/Downloads and interpreted by the program from there. There is a similar process for all plugins that can be interpreted and executed within sarracenia components. Components will first look in the plugins directory in the users config tree, then in the site directory, then in the sarracenia package itself, and finally it will look remotely. Remote ConfigurationsOne can specify URI’s as configuration files, rather than local files. Example:
On startup, sr3 checks if the local file cap.conf exists in the local configuration directory. If it does, then the file will be read to find a line like so:
In which case, it will check the remote URL and compare the modification time of the remote file against the local one. The remote file is not newer, or cannot be reached, then the component will continue with the local file. If either the remote file is newer, or there is no local file, it will be downloaded, and the remote_config_url line will be prepended to it, so that it will continue to self-update in future. Logsfor the logs, look in ~/.cache/sr3/logs (on linux. Other platforms, will vary.) To find them on any platform: fractal% sr3 list User Configurations: (from: /home/peter/.config/sr3 ) admin.conf credentials.conf default.conf logs are in: /home/peter/.cache/sr3/log Last line indicates the directory. EXAMPLESHere is a short complete example configuration file: broker amqps://dd.weather.gc.ca/ subtopic model_gem_global.25km.grib2.# accept .* This above file will connect to the dd.weather.gc.ca broker, connecting as anonymous with password anonymous (defaults) to obtain notification messages about files in the http://dd.weather.gc.ca/model_gem_global/25km/grib2 directory. All files which arrive in that directory or below it will be downloaded into the current directory (or just printed to standard output if -n option was specified.) A variety of example configuration files are available here: SEE ALSOUser Commands: sr3_post(1) - post file notification messages (python implementation.) sr3_cpost(1) - post file announcemensts (C implementation.) sr3_cpump(1) - C implementation of the shovel component. (copy notification messages) Formats: sr3_credentials(7) - Convert logfile lines to .save Format for reload/resend. sr3_options(7) - Convert logfile lines to .save Format for reload/resend. sr3_post(7) - The format of notification messages. Home Page: https://metpx.github.io/sarracenia - Sarracenia: a real-time pub/sub data sharing management toolkit |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |