Skip to content

Consider both memory free proportion and absolute value before blocking. #586

@ghost

Description

See around

if float64(memory.Available) / float64(memory.Total) < 0.2 {
	if i % 30 == 0 { // suppress log
		b.logger.Warn("memory is less than 20%. pause parsing binlog for 1s",
			"available", memory.Available, "total", memory.Total)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions