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

Minimizing Hello World example (disk space, ...) #36

Open
jcalfee opened this issue Aug 24, 2024 · 0 comments
Open

Minimizing Hello World example (disk space, ...) #36

jcalfee opened this issue Aug 24, 2024 · 0 comments

Comments

@jcalfee
Copy link

jcalfee commented Aug 24, 2024

Could you please direct me on how I might adjust the Hello World to have a small but operational foot-print?

The most obvious thing was the 1.2 Gigs of disk space used by 4 nodes right after start-up. Each of the 4 nodes takes up over 250MB and that must be the reason why it give me a sluggish first-impression.

Maybe it is simply adding a few parameters here and re-compiling?

// See GoDoc for all available options
rc := config.Config{

I'm not sure how to apply this though. It does not compile when I try these settings below in the config block above.

// GetTinyMemLogDBConfig returns a LogDB config aimed for minimizing memory
// size. When using the returned config, LogDB takes up to 256MBytes memory.
func GetTinyMemLogDBConfig() LogDBConfig {
	cfg := getDefaultLogDBConfig()
	cfg.KVWriteBufferSize = 4 * 1024 * 1024
	cfg.KVMaxWriteBufferNumber = 4
	return cfg
}

GetTinyMemLogDBConfig

Maybe add a link for this: "See GoDoc for all available options"

Thank you!

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

No branches or pull requests

1 participant