MCPcopy Create free account
hub / github.com/apple/foundationdb / printUsage

Function printUsage

fdbserver/fdbserver.actor.cpp:588–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588static void printUsage(const char* name, bool devhelp) {
589 printf("FoundationDB " FDB_VT_PACKAGE_NAME " (v" FDB_VT_VERSION ")\n");
590 printf("Usage: %s -p ADDRESS [OPTIONS]\n\n", name);
591 printOptionUsage("-p ADDRESS, --public-address ADDRESS",
592 " Public address, specified as `IP_ADDRESS:PORT' or `auto:PORT'.");
593 printOptionUsage("-l ADDRESS, --listen-address ADDRESS",
594 " Listen address, specified as `IP_ADDRESS:PORT' (defaults to"
595 " public address).");
596 printOptionUsage("-C CONNFILE, --cluster-file CONNFILE",
597 " The path of a file containing the connection string for the"
598 " FoundationDB cluster. The default is first the value of the"
599 " FDB_CLUSTER_FILE environment variable, then `./fdb.cluster',"
600 " then `" +
601 platform::getDefaultClusterFilePath() + "'.");
602 printOptionUsage("--seed-cluster-file SEEDCONNFILE",
603 " The path of a seed cluster file which will be used to connect"
604 " if the -C cluster file does not exist. If the server connects"
605 " successfully using the seed file, then it copies the file to"
606 " the -C file location.");
607 printOptionUsage("--seed-connection-string SEEDCONNSTRING",
608 " The path of a seed connection string which will be used to connect"
609 " if the -C cluster file does not exist. If the server connects"
610 " successfully using the seed string, then it copies the string to"
611 " the -C file location.");
612#ifdef __linux__
613 printOptionUsage("--data-filesystem PATH",
614 " Turns on validation that all data files are written to a drive"
615 " mounted at the specified PATH. This checks that the device at PATH"
616 " is currently mounted and that any data files get written to the"
617 " same device.");
618#endif
619 printOptionUsage("-d PATH, --datadir PATH",
620 " Store data files in the given folder (must be unique for each"
621 " fdbserver instance on a given machine).");
622 printOptionUsage("-L PATH, --logdir PATH", " Store log files in the given folder (default is `.').");
623 printOptionUsage("--logsize SIZE",
624 "Roll over to a new log file after the current log file"
625 " exceeds SIZE bytes. The default value is 10MiB.");
626 printOptionUsage("--maxlogs SIZE, --maxlogssize SIZE",
627 " Delete the oldest log file when the total size of all log"
628 " files exceeds SIZE bytes. If set to 0, old log files will not"
629 " be deleted. The default value is 100MiB.");
630 printOptionUsage("--loggroup LOG_GROUP",
631 " Sets the LogGroup field with the specified value for all"
632 " events in the trace output (defaults to `default').");
633 printOptionUsage("--trace-format FORMAT",
634 " Select the format of the log files. xml (the default) and json"
635 " are supported.");
636 printOptionUsage("--tracer TRACER",
637 " Select a tracer for transaction tracing. Currently disabled"
638 " (the default) and log_file are supported.");
639 printOptionUsage("-i ID, --machine-id ID",
640 " Machine and zone identifier key (up to 16 hex characters)."
641 " Defaults to a random value shared by all fdbserver processes"
642 " on this machine.");
643 printOptionUsage("-a ID, --datacenter-id ID", " Data center identifier key (up to 16 hex characters).");
644 printOptionUsage("--locality-LOCALITYKEY LOCALITYVALUE",
645 " Define a locality key. LOCALITYKEY is case-insensitive though"

Callers 1

parseArgsInternalMethod · 0.70

Calls 3

printfFunction · 0.85
printOptionUsageFunction · 0.70

Tested by

no test coverage detected