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

UI Peer Page - Stats and Slots #576

Merged
merged 4 commits into from
Oct 27, 2023
Merged

UI Peer Page - Stats and Slots #576

merged 4 commits into from
Oct 27, 2023

Conversation

Amogh-Bharadwaj
Copy link
Contributor

Screenshot 2023-10-25 at 9 32 28 PM

"google.golang.org/protobuf/proto"
)

func (h *FlowRequestHandler) GetPoolForPGPeer(ctx context.Context, peerName string) (*pgxpool.Pool, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can this be a private method?

message StatInfo {
int64 pid = 1;
string query = 2;
float duration = 3;
Copy link
Contributor

Choose a reason for hiding this comment

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

wait_event, wait_event_type, query_start are extremely useful as well.

}

message SlotInfo {
string slot_name = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

is there any additional data about when the slot was created?

@@ -94,6 +94,31 @@ message CDCSyncStatus {
google.protobuf.Timestamp end_time = 5;
}

message PeerDataRequest {
Copy link
Contributor

Choose a reason for hiding this comment

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

lets call this PostgresPeerActivityInfoRequest

return (
<TableRow key={slotName}>
<TableCell>
{flowName.length >= 1 ? (
Copy link
Contributor

Choose a reason for hiding this comment

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

refactor to its own component function const SlotMirrorInfo = .. { slotName, flowName?} or something along those lines.

});
return peerSlots.slotData;
};
const getStatData = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

sprinkle some new lines to make this more readable.

@Amogh-Bharadwaj Amogh-Bharadwaj merged commit 2db5a5d into main Oct 27, 2023
12 checks passed
@serprex serprex deleted the ui-peer-page branch July 19, 2024 15:19
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.

2 participants