stoQ plugin that leverages Redis for queuing and saving results
All options below may be set by:
-
redis_host
[str]: Redis hostname or ip -
redis_port
[int]: Redis port -
redis_queue
[str]: Queue name for sending and receiving messages -
publish_archive
[True
/False
]: When used as a Connector plugin, should the ArchiveResponses be saved, or StoqResponse? Useful for sending archived payload metadata to topic. -
max_connections
[int]: Max connections permitted in redis connection pool
Start stoq
using redis-queue
as the provider plugin, filedir
as the source archiver, then scan the payload with the hash
, and send results to stdout
connector:
$ stoq run -P redis-queue -S filedir -a hash -C stdout
In another terminal, load files from /tmp/test-files
using the filedir
provider plugin, then archive the payloads with filedir
archive plugin, and send a message to the redis-queue
queue for processing:
$ stoq run -P filedir -A filedir -C redis-queue --plugin-opts filedir:source_dir=/tmp/test-files