Configuration

August 21, 2019 ยท View on GitHub

Environment variables

NameDescription
BBLFSH_ENDPOINTbblfshd endpoint, default "127.0.0.1:9432"
GITBASE_BLOBS_MAX_SIZEmaximum blob size to return in MiB, default 5 MiB
GITBASE_BLOBS_ALLOW_BINARYenable retrieval of binary blobs, default false
GITBASE_SKIP_GIT_ERRORSdo not stop queries on git errors, default disabled
GITBASE_INDEX_DIRdirectory to save indexes, default /var/lib/gitbase/index
GITBASE_TRACEenable jaeger tracing, default disabled
GITBASE_READONLYallow read queries only, disabling creating and deleting indexes, default disabled
GITBASE_LANGUAGE_CACHE_SIZEsize of the cache for the language UDF. The size is the maximum number of elements kept in the cache, 10000 by default
GITBASE_UAST_CACHE_SIZEsize of the cache for the uast and uast_mode UDFs. The size is the maximum number of elements kept in the cache, 10000 by default
GITBASE_CACHESIZE_MBsize of the cache for git objects specified as MB
GITBASE_CONNECTION_TIMEOUTtimeout in seconds used for client connections on write and reads. No timeout by default.
GITBASE_USER_FILEJSON file with user credentials
GITBASE_MAX_UAST_BLOB_SIZEMax size of blobs to send to be parsed by bblfsh. Default: 5242880 (5MB)
GITBASE_LOG_LEVELminimum logging level to show, use fatal to suppress most messages. Default: info

Configuration from go-mysql-server

NameTypeDescription
INMEMORY_JOINSenvironmentIf set it will perform all joins in memory. Default is off.
inmemory_joinssessionIf set it will perform all joins in memory. Default is off. This has precedence over INMEMORY_JOINS.
MAX_MEMORYenvironmentThe maximum number of memory, in megabytes, that can be consumed by go-mysql-server. Any in-memory caches or computations will no longer try to use memory when the limit is reached. Note that this may cause certain queries to fail if there is not enough memory available, such as queries using DISTINCT, ORDER BY or GROUP BY with groupings.
DEBUG_ANALYZERenvironmentIf set, the analyzer will print debug messages. Default is off.
PILOSA_INDEX_THREADSenvironmentNumber of threads used in index creation. Default is the number of cores available in the machine.
pilosa_index_threadsenvironmentNumber of threads used in index creation. Default is the number of cores available in the machine. This has precedence over PILOSA_INDEX_THREADS.

Jaeger tracing variables

Extracted from https://github.com/jaegertracing/jaeger-client-go/blob/master/README.md

PropertyDescription
JAEGER_SERVICE_NAMEThe service name
JAEGER_AGENT_HOSTThe hostname for communicating with agent via UDP
JAEGER_AGENT_PORTThe port for communicating with agent via UDP
JAEGER_REPORTER_LOG_SPANSWhether the reporter should also log the spans
JAEGER_REPORTER_MAX_QUEUE_SIZEThe reporter's maximum queue size
JAEGER_REPORTER_FLUSH_INTERVALThe reporter's flush interval (ms)
JAEGER_SAMPLER_TYPEThe sampler type
JAEGER_SAMPLER_PARAMThe sampler parameter (number)
JAEGER_SAMPLER_MANAGER_HOST_PORTThe host name and port when using the remote controlled sampler
JAEGER_SAMPLER_MAX_OPERATIONSThe maximum number of operations that the sampler will keep track of
JAEGER_SAMPLER_REFRESH_INTERVALHow often the remotely controlled sampler will poll jaeger-agent for the appropriate sampling strategy
JAEGER_TAGSA comma separated list of name = value tracer level tags, which get added to all reported spans. The value can also refer to an environment variable using the format ${envVarName:default}, where the :default is optional, and identifies a value to be used if the environment variable cannot be found
JAEGER_DISABLEDWhether the tracer is disabled or not. If true, the default opentracing.NoopTracer is used.
JAEGER_RPC_METRICSWhether to store RPC metrics

Command line arguments

Please specify one command of: server or version
Usage:
  gitbase [OPTIONS] <server | version>

Help Options:
  -h, --help  Show this help message

Available commands:
  server   Starts a gitbase server instance
  version  Show the version information

server command contains the following options:

Usage:
  gitbase [OPTIONS] server [server-OPTIONS]

Starts a gitbase server instance

By default when gitbase encounters an error in a repository it
stops the query. With GITBASE_SKIP_GIT_ERRORS variable it won't
complain and just skip those rows or repositories.

Help Options:
  -h, --help                                           Show this help message

[server command options]
          --db=                                        Database name (default: gitbase)
      -d, --directories=                               Path where standard git repositories are located,
                                                       multiple directories can be defined.
          --format=[git|siva]                          Library format (default: git)
          --bucket=                                    Bucketing level to use with siva libraries (default: 2)
          --bare                                       Sets the library to use bare git repositories, used
                                                       only with git format libraries
          --non-bare                                   Sets the library to use non bare git repositories,
                                                       used only with git format libraries
          --non-rooted                                 Disables treating siva files as rooted repositories
          --host=                                      Host where the server is going to listen (default:
                                                       localhost)
      -p, --port=                                      Port where the server is going to listen (default:
                                                       3306)
      -u, --user=                                      User name used for connection (default: root)
      -P, --password=                                  Password used for connection
      -U, --user-file=                                 JSON file with credentials list [$GITBASE_USER_FILE]
      -t, --timeout=                                   Timeout in seconds used for connections
                                                       [$GITBASE_CONNECTION_TIMEOUT]
      -i, --index=                                     Directory where the gitbase indexes information will
                                                       be persisted. (default: /var/lib/gitbase/index)
                                                       [$GITBASE_INDEX_DIR]
          --cache=                                     Object cache size in megabytes (default: 512)
                                                       [$GITBASE_CACHESIZE_MB]
          --parallelism=                               Maximum number of parallel threads per table. By
                                                       default, it's the number of CPU cores. 0 means
                                                       default, 1 means disabled.
          --no-squash                                  Disables the table squashing.
          --trace                                      Enables jaeger tracing [$GITBASE_TRACE]
      -r, --readonly                                   Only allow read queries. This disables creating and
                                                       deleting indexes as well. Cannot be used with
                                                       --user-file. [$GITBASE_READONLY]
      -v                                               Activates the verbose mode (equivalent to debug
                                                       logging level), overwriting any passed logging level
          --log-level=[info|debug|warning|error|fatal] logging level (default: info) [$GITBASE_LOG_LEVEL]