Skip to main content

ASP.NET Core Sample Server

Kommander.Server is a runnable ASP.NET Core host in the Kommander repository. It creates a RaftManager, uses static discovery, uses RocksDbWAL, uses GrpcCommunication, maps REST and gRPC Raft routes, and starts a background replication service.

Important command-line options:

OptionDescription
--host, -hHost to bind incoming ASP.NET Core connections to. Default: *.
--initial-clusterOther node endpoints for static discovery.
--initial-cluster-partitionsInitial user partition count. Default: 16.
--raft-nodenameStable node name.
--raft-nodeidInteger node id.
--raft-hostHost advertised for Raft traffic. Default: localhost.
--raft-portPort advertised for Raft traffic. Default: 2070.
--http-ports, -pHTTP ports to bind. If omitted, Kestrel listens on 8004.
--https-portsHTTPS ports to bind. If omitted, Kestrel listens on 8005.
--https-certificateHTTPS certificate path.
--https-certificate-passwordHTTPS certificate password. Default: empty.
--wal-adapterParsed option with default rocksdb; the current server construction path always creates RocksDbWAL.
--rocksdb-wal-pathParsed RocksDB WAL path option. Not used by the current server construction path.
--rocksdb-wal-revisionParsed RocksDB WAL revision option. Not used by the current server construction path.
--sqlite-wal-pathWAL path currently passed to RocksDbWAL.
--sqlite-wal-revisionWAL revision currently passed to RocksDbWAL.

The current server construction path uses RocksDbWAL with the configured SQLite path and revision option names. Prefer constructing your own host if you need exact storage-option naming.