-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to start only indexer or only ledger API server [KVL-584] (…
…#7574) * Add ability to start only indexer or lapi server CHANGELOG_BEGIN CHANGELOG_END * Change command line arguments * Use Resource.unit * Fix MultiParticipantFixture * Add a new conformance test * Improve retrying connecting to the database * Improve naming * Introduce shardName and use it to create unique metric names * Fix a merge error * Remove unused comment * Fix test * Run conformance-test-split-participant in batch mode Co-authored-by: tudor-da <tudor.voicu@digitalasset.com>
- Loading branch information
1 parent
8e905b3
commit 8f57b9b
Showing
9 changed files
with
119 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/ParticipantRunMode.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package com.daml.ledger.participant.state.kvutils.app | ||
|
||
sealed abstract class ParticipantRunMode | ||
|
||
object ParticipantRunMode { | ||
|
||
/** Run the full participant, including both the indexer and ledger API server */ | ||
case object Combined extends ParticipantRunMode | ||
|
||
/** Run only the indexer */ | ||
case object Indexer extends ParticipantRunMode | ||
|
||
/** Run only the ledger API server */ | ||
case object LedgerApiServer extends ParticipantRunMode | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters