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

merge logmonitor and startup logmonitor #1679

Merged
merged 6 commits into from
Oct 3, 2023

Conversation

TrevorBenson
Copy link
Collaborator

@TrevorBenson TrevorBenson commented Aug 29, 2023

Combined functionality of logMonitor and startupLogMonitor into a single script.

Testing

Requirements

  • OS dependencies
  • cardano binaries (built or from release)
  • CNCLI

Checkout the code

Use guild-deploy.sh to target the branch.

./guild-deploy.sh -b combine-log-monitoring

Use deploy-as-systemd.sh to setup at minimum cnode and logmonitor.

Testing original functionality

The RestartSec has been lowered to 1 second. Sourcing was set to offline mode with env offline. The change in timing allows tracking chunk validation and ledger replay events.

  1. Start/Stop/Kill the cnode.service.
  2. Verify cnode-logmonitor.service responds accordingly with 1 second Restart vs. 20.
  3. Check blocklog db for expected blocks.

Testing specific to startup log

  1. Pre Initialize blocklogdb
    • /opt/cardano/cnode/scripts/cncli.sh init
  2. Check blocklog db for replay and validation table entries.
    • If the cardano node was cleanly stopped there will be minimal or no entries in replay or validation tables upon startup. Use kill -9 on the pid of your cardano-node to cause an unclean shutdown and the next time the node starts it will perform chunk validation and replay the ledger and the associated tables will have entries.

@TrevorBenson TrevorBenson requested review from rdlrt and Scitz0 August 29, 2023 07:38
@rdlrt rdlrt requested a review from gufmar August 29, 2023 07:40
@TrevorBenson TrevorBenson force-pushed the combine-log-monitoring branch from 578e9e4 to a4fcfad Compare August 30, 2023 00:26
@TrevorBenson TrevorBenson enabled auto-merge (squash) August 30, 2023 21:05
@github-actions
Copy link

github-actions bot commented Sep 3, 2023

Cannot auto-update because of conflicts.

@rdlrt rdlrt disabled auto-merge September 3, 2023 01:48
@TrevorBenson
Copy link
Collaborator Author

I'll look at the conflict today.

@TrevorBenson TrevorBenson self-assigned this Sep 3, 2023
@TrevorBenson
Copy link
Collaborator Author

TrevorBenson commented Sep 5, 2023

I'll look at the conflict today.

I'm guessing github mobile was mistakenly still showing me a merge conflict resolved when 8bad716 was merged, prior to this earlier response... My browser never seemed to show there being a conflict, and merging into alpha in a fork works after reset and sync for commits to alpha since this message. 🤷

@rdlrt
Copy link
Contributor

rdlrt commented Sep 12, 2023

@gufmar - any updates?

Copy link
Contributor

@gufmar gufmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@gufmar gufmar merged commit 8402049 into cardano-community:alpha Oct 3, 2023
1 check passed
@TrevorBenson TrevorBenson deleted the combine-log-monitoring branch November 28, 2023 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants