exocore 0.1.6

Distributed applications framework
Documentation
# Node's keypair and public key
# Use `exo sec generate-key` to generate node's keys
name: Optional Node Name
public_key: peFdPsQsdqzT2H6cPd3WdU1fGdATDmavh4C17VWWacZTMP
keypair: ae2oiM2PYznyfqEMPraKbpAuA8LWVhPUiUTgdwjvnwbDjnz9W9FAiE9431NtVjfBaX44nPPoNR8Mv6iYcJdqSfp8eZ

# Node's listen addresses
addresses:
  p2p:
    - /ip4/0.0.0.0/tcp/3330
    - /ip4/0.0.0.0/tcp/3341/ws
  http:
    - http://0.0.0.0:8888

# Cells that the node is part of
# Use `exo sec generate-key` to generate cell's keys
cells:
  # Cell defined inline
  - inline:
      public_key: pe2AgPyBmJNztntK9n4vhLuEYN8P2kRfFXnaZFsiXqWacQ
      keypair: ae55Nfv11ppyFVxCDaYovcxTcaTDaSzSFjiVoiC3VwGARfEuaqGcgoJUdVpqfwKQVDN4rvGKUvt4yqQc6w7it7PCpG
      name: Optional Cell Name
      nodes:
        - node:
            name: Optional Node Name
            public_key: peFdPsQsdqzT2H6cPd3WdU1fGdATDmavh4C17VWWacZTMP
            addresses:
              p2p:
                - /ip4/127.0.0.1/tcp/3330
                - /ip4/127.0.0.1/tcp/3341/ws
              http:
                - http://127.0.0.1:8888

          # Roles of the node in the cell
          # See `CellNodeConfig` `Role` enum in: https://github.com/appaquet/exocore/blob/master/protos/protobuf/exocore/core/config.proto
          roles:
            - 1 # Chain
            - 2 # Store
            - 3 # App host

        - node:
            name: Some Client Node
            public_key: peHdrwp1ZXicF1v7RQRRC4ursqgE1oM9nuVijCmrf74n7E

      apps:
        - name: Some Application
          version: 0.0.1
          public_key: peVpKYaERNKGhHRm7jEC1XXe4CUBWGv8g1QuDyDr76U1q 
          package_url: https://some/path/to/package.zip
          path: ./app

  # Cell defined in a directory
  - path: ./cell

store:
  index:
    chain_index_min_depth: 3
    chain_index_depth_leeway: 10

    pending_index:
      indexer_num_threads: 2
      indexer_heap_size_bytes: 30000000
      entity_mutations_cache_size: 1000

    chain_index:
      indexer_num_threads: 2
      indexer_heap_size_bytes: 30000000
      entity_mutations_cache_size: 1000

    garbage_collector:
      run_interval_secs: 30
      queue_size: 100

chain:
  segment_max_size: 209715200 # 200mb
  segment_max_open_mmap: 10   # Max 2gb concurrently opened