Skip to content
Dave LeBlanc edited this page Aug 13, 2017 · 1 revision

API Configuration

The API configuration is stored in $PREFIX/etc/razorback/api.conf. If you are using a single machine to run razorback on you can just copy the installed api.conf.sample to api.conf.

Default API Config:

Global: {
    MaxThreads=100;
    HashType="SHA256";
    MaxBlockSize=100;
    HelloTime=2;
    DeadTime=10;
    Locality=1;
};
Cache: {
    BadLimit=256;
    GoodLimit=256;
};

MessageQueue: {
    Host="localhost";
    Port=61614;
    User="User";
    Password="Password";
    SSL="True";
};
  • Global - Global configuration
    • MaxThreads - Maximum number of threads the system will launch.
    • HashType - Hash algorithm used to identify blocks
      • SHA512
      • SHA256
      • SHA1
      • MD5
    • HelloTime - Interval in seconds that hello messages are sent to the command and control channel.
    • DeadTime - Time in seconds since the last hello until a node should be considered dead.
    • Locality - System storage locality - If instances have access to the same NFS volume for block storage they should be in the same locality as the dispatcher node. If not they should be in a different locality and a web server should be configured to serve the data blocks to inspection nuggets.
  • Cache - Local cache configuration
    • BadLimit - Number of block ids marked bad to be cached.
    • GoodLimit - Number of block ids not marked bad to be cached.
  • MessageQueue - Settings to access ActiveMQ
    • Host - Hostname of the MQ
    • Port - Port to access the service on.
    • User - Username to authenticate with
    • Password - Password to authenticate with
    • SSL - Use SSL to protect MQ connection.

Logging Configuration

The logging configuration is stored in $PREFIX/etc/razorback/logging.conf.

LOG_DEST="syslog";

LOG_LEVEL="debug";

SYSLOG_FACILITY="daemon";

LOG_FILE="/tmp/rzb.log";
  • LOG_DEST - Logging destination
    • syslog
    • file
    • stderr
  • LOG_LEVEL - Logging output level
    • debug
    • info
    • notice
    • warning
    • error
    • critical
    • alert
    • emergency
  • SYSLOG_FACILITY - If using syslog as the destination what facility should messages be sent to.
    • daemon
    • user
    • local1
    • local2
    • local3
    • local4
    • local5
    • local6
    • local7
  • LOG_FILE - File to write log messages to if using the file destination.

Clone this wiki locally