Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rosetta, log Postgresql connection, locks data #9896

Merged
merged 3 commits into from
Dec 7, 2021

Conversation

psteckler
Copy link
Member

Add some logs to Rosetta:

  • for account, blocks, and construction endpoints, log the query data
  • at some interval, log the Postgresql number of connections and number of locks

The default interval is 30 seconds. That default can be overridden using the environment variable MINA_ROSETTA_PG_DATA_INTERVAL, given in seconds.

Tested locally to make sure the Postgresql logs appeared at the given interval.

@psteckler psteckler added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label Dec 7, 2021
@psteckler psteckler merged commit e2864c8 into rosetta-1.2.1-safe Dec 7, 2021
@psteckler psteckler deleted the feature/rosetta-log-pg-data branch December 7, 2021 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants