Commit Graph

6 Commits

Author SHA1 Message Date
Samir Talwar
6bb034c053
daml-on-sql: Extend the README with information about architecture and system dependencies. (#6961)
* daml-on-sql: Fix references to the JAR file in the README.

* daml-on-sql: Add README info about architecture, OS, and dependencies.

* daml-on-sql: Make README headings consistent in style.

* daml-on-sql: Explain the `--ledgerid` flag in the README.

* daml-on-sql: Everything is important.

* daml-on-sql: Document parameters used to tune performance.

CHANGELOG_BEGIN
- [DAML on SQL] Document the architecture and OS we test against, native
  system dependencies on Linux, and parameters for performance tuning.
CHANGELOG_END

* daml-on-sql: Document architecture requirements.
2020-08-03 12:59:54 +00:00
Stefano Baghino
e972872128
Properly use LoggingContext in Participant Server (#6924)
* Properly use LoggingContext in Participant Server

Fixes #6837

Spreads usage of LoggingContext and ContextualizedLogger throughout the participant server.

changelog_begin
[Sandbox/Integration Kit] We have enriched the contextual information
exposed by the Ledger API server. You should note richer logging information,
which can be read either via unstructured or structured logging frameworks.
A paragraph on how to configure structured logging has been added to the docs.
For more on the issue, see https://github.com/digital-asset/daml/issues/6837.
changelog_end

* Make everything compile

* Leave only actual commands on trace level on submission

* Shorter log messages on submission

* Don't add values down the call stack

* Document good practices regarding the logging context

* Add context to write service implementations

* Add logging context to tests

* Document logging for DAML on SQL

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463503013

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463508117

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463515665

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463513157

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463516359

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463516895

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463518813

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463520210

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463521501

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463521593

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463525453

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463525560

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463525672

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463525742

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463526837

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527054

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527523

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527814

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527958

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527900

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527997

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463528050

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463542877

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463543051

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463543614

* Address https://github.com/digital-asset/daml/pull/6924#discussion_r463543692
2020-07-31 12:40:13 +00:00
Stefano Baghino
c16f17a721
Remove mentions of fidelity levels from the Ledger API test tool (#6893)
* Remove mentions of fidelity levels from the Ledger API test tool

Fixes #6868

changelog_begin
[Integration Kit] The performance test names have been changed.
To learn more about the available tests, consult the documentation
for the Ledger API Test Tool and run it with --list.
Docs: https://docs.daml.com/tools/ledger-api-test-tool/index.html
changelog_end

* Update performance envelope tests

* Address https://github.com/digital-asset/daml/pull/6893#discussion_r461655325
2020-07-28 18:24:46 +00:00
Samir Talwar
4b703e19e7
daml-on-sql: Build a Docker image. (#6887)
* daml-on-sql + sandbox: Remove unused Bazel `load` declarations.

* daml-on-sql: Build a Docker image.

* daml-on-sql: Move the example Kubernetes file over from Sandbox.

* Add a changelog entry that was dropped.

CHANGELOG_BEGIN
* [DAML on SQL] DAML on SQL is now available with every release,
  from the GitHub Releases page.
CHANGELOG_END

* Upgrade the Java Docker base image to the latest version.
2020-07-28 08:07:49 +00:00
Stefano Baghino
19ed5bf939
Document DAML on SQL (#6850)
* Document DAML-on-SQL

Closes #6447
Closes #6445
Closes #6444
Closes #6443

changelog_begin
changelog_end

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>

* Address https://github.com/digital-asset/daml/pull/6850#discussion_r459953049

* Address https://github.com/digital-asset/daml/pull/6850#discussion_r459952778

* Address https://github.com/digital-asset/daml/pull/6850#discussion_r459952868

* Address https://github.com/digital-asset/daml/pull/6850#discussion_r459951990

* Address https://github.com/digital-asset/daml/pull/6850#discussion_r459953762

* Do not mention beta-level fidelity explicitly

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>

* Update ledger/daml-on-sql/README.rst

Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>

* Address several review comments

- Address https://github.com/digital-asset/daml/pull/6850#discussion_r459951080
- Address https://github.com/digital-asset/daml/pull/6850#discussion_r460115822
- Address https://github.com/digital-asset/daml/pull/6850#discussion_r460116739
- Address https://github.com/digital-asset/daml/pull/6850#discussion_r460118073
- Address https://github.com/digital-asset/daml/pull/6850#discussion_r460123918

* Put left over mention of DAML on SQL in italics

* Integrate further feedback from Tim and @gerolf-da

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>
2020-07-27 13:12:36 +02:00
Samir Talwar
98de16606d
daml-on-sql: An elegant Main class, for a more civilized age. (#6829)
* daml-on-sql: Pull out a new `Main` object that wraps sandbox-classic.

CHANGELOG_BEGIN
CHANGELOG_END

* daml-on-sql: Fail if a JDBC URL is not provided or not for PostgreSQL.

* sandbox-classic: Rename the conformance test H2 database.

* daml-on-sql + sandbox-classic: Report configuration errors cleanly.

This means letting `ProgramResource` catch the errors, log, and exit.

* daml-on-sql: Change the name logged on startup.

* daml-on-sql: Change the default participant ID.

* sandbox-common: Give the ledger name its own tagged string type.

* sandbox-classic: Generate random ledger IDs using the ledger name.

* daml-on-sql: Remove the banner, replacing it with a blank line.

* daml-on-sql: Enable strong seeding by default.

And weak seeding in the conformance tests.

* sandbox-classic: Move the ledger name to a separate parameter.

It's not really configurable.

* sandbox-classic: Move LedgerName from sandbox-common.

* daml-on-sql: Remove "-participant" from the participant ID.

* daml-on-sql: Use `Name` where possible.

* daml-on-sql: Make the ledger ID mandatory.

* Revert "sandbox-classic: Move LedgerName from sandbox-common."

This reverts commit 0dad1584a7.

* daml-on-sql: Print "DAML-on-SQL" in the CLI help, not "Sandbox".

* daml-on-sql + sandbox + sandbox-classic: Split out custom CLI parsing. (#6846)

* participant-state: Simplify naming the seeding modes.
2020-07-24 18:54:19 +00:00