Skip to main content

Configuration Reference

This guide details the configuration parameters for the Log Store Node. The configuration file, located at ~/.logstore/config/default.json, is essential for setting up your Node's operation, defining its mode, client details, HTTP server setup, and plugins.

Configuration Properties

Object.PropertyDescriptionDefault Behavior
clientClient authentication method. This wallet will be used for executing subscriptions and publishing messages.Required
client.auth.privateKeyPrivate key for authentication, in string format.
client.auth.ethereumEthereum object for Web3 provider-based authentication.
pluginsDefines additional plugin configurations. See below its specific table for it.
modeSpecific configuration for each mode
mode.typeDetermines the Node's operating mode: standalone or network.Network
httpServer.portPort number for the HTTP server.7171
httpServer.sslCertificate.certFileNamePath to the certificate file for SSL.
httpServer.sslCertificate.privateKeyFileNamePath to the private key file for SSL.

Mode-Specific Configuration

The Node's functionality is influenced by its operating mode. The following tables describe specific configurations for Standalone and Network modes.

Standalone Mode Configuration

Object.PropertyDescription
mode.typeSet to 'standalone' for Standalone Mode.
mode.trackedStreamsArray of objects defining streams to track and the number of partitions they have.
mode.topicsStreamStream ID for validation results from predefined processes.
mode.validationErrorsStreamStream ID for schema validation errors.

Network Mode Configuration

Object.PropertyDescription
mode.typeSet to 'network' for integration into the decentralized Log Store Network.
mode.pool.idID of the Kyve Pool for polling new bundles.
mode.pool.urlURL of the Kyve Pool for polling.
mode.pool.pollIntervalInterval for polling the Kyve network for validated bundles.

Configuration Properties for LogStore Plugin

Object.PropertyDescriptionDefault Behavior
plugins.logStore.cassandra.hostsArray of hostnames for the Apache Cassandra cluster.
plugins.logStore.cassandra.usernameUsername for Apache Cassandra authentication.
plugins.logStore.cassandra.passwordPassword for Apache Cassandra authentication.
plugins.logStore.cassandra.keyspaceKeyspace name in Apache Cassandra.
plugins.logStore.cassandra.datacenterName of the datacenter in Apache Cassandra.
plugins.logStore.logStoreConfig.refreshIntervalInterval in milliseconds to refresh LogStore config from Core API. Set to 0 to disable.600000 (10 minutes)
plugins.logStore.cluster.clusterAddressAddress of the LogStore node cluster.
plugins.logStore.cluster.clusterSizeTotal number of nodes in the LogStore cluster.1
plugins.logStore.cluster.myIndexInClusterIndex of the current node within the LogStore cluster.0
plugins.logStore.programs.chainRpcUrlsMapping of ChainId to its corresponding RPC URL for programs usage{"137": "https://polygon-rpc.com"}

Examples

For more information on usage, check out our set of configuration examples available on the repository.