You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/logtail
Andrea Gottardo 810c84b659 logtail: remove LowMemory mode
Fixes tailscale/tailscale#13685

logtail currently has a LowMemory flag, which is enabled upon initialization on memory-constrained platforms like iOS. This flag reduces the ring buffer size from 256 log lines to 64. It was introduced over four years ago, back when Tailscale supported iOS 14 and earlier, where network extensions were limited to 15 MB of RAM.

Since the memory limit has now increased to 50 MB on all supported iOS versions (with our minimum requirement being iOS 15.0), the need to conserve a few kilobytes of RAM by reducing buffer entries and the size of each flush is minimal.

The additional code paths are more things we need to maintain over time... with little benefit. This PR removes that.

To be merged after we cut the first 1.77 unstable, as this might be a risky change.

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
4 weeks ago
..
backoff all: use math/rand/v2 more 5 months ago
example all: add test for package comments, fix, add comments as needed 4 months ago
filch all: use Go 1.22 range-over-int 7 months ago
.gitignore
README.md
api.md
buffer.go logtail: require Buffer.Write to not retain the provided slice (#11617) 7 months ago
logtail.go logtail: remove LowMemory mode 4 weeks ago
logtail_test.go all: use Go 1.22 range-over-int 7 months ago

README.md

Tailscale Logs Service

This github repository contains libraries, documentation, and examples for working with the public API of the tailscale logs service.

For a very quick introduction to the core features, read the API docs and peruse the logs reprocessing example.

For more information, write to info@tailscale.io.