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

Change default cache count from 65536 to 512(#721) #732

Conversation

lichunzhu
Copy link
Contributor

What problem does this PR solve?

Cherry pick of #721
Current default cache count is too big which can easily cause OOM of drainer.

What is changed and how it works?

The default size is changed from 65536 to 512.

Check List

Tests

  • Unit test
  • Integration test

Code changes

Side effects

Related changes

@lichunzhu
Copy link
Contributor Author

/run-all-tests

@zier-one
Copy link
Contributor

/run-all-tests tidb=release-2.1 tikv=release-2.1 pd=release-2.1

@july2993
Copy link
Contributor

do not merge first, need more test, I will fire a relate pr.

@july2993
Copy link
Contributor

july2993 commented Aug 30, 2019

this var will affect another var...and make make nearly can't write to the downstream concurrently.
you can search the code about maxBinlogItemCount (only for 2.1)

@lichunzhu
Copy link
Contributor Author

this var will affect another var...and make make nearly can't write to the downstream concurrently.
you can search the code about maxBinlogItemCount (only for 2.1)

OK. I find that it will affect jobCh. I have already set label to DNM.

@lichunzhu lichunzhu closed this Sep 2, 2019
@lichunzhu lichunzhu deleted the czli/release-2.1/reduceDefaultBinlogItemCount branch September 4, 2019 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants