Using fly-log-shipper
and its working great… except it’s sending every log twice.
I think this is because of having a machine for ipv4 and ivp6 automatically provisioned. Is there a way to disabled this behavior and only have one?
Here’s what it looks like in my logging provider’s stream:
fly.toml
:
app = "test-logger"
primary_region = "ord"
[build]
image = "ghcr.io/superfly/fly-log-shipper:latest"
[[services]]
http_checks = []
internal_port = 8686
andie
September 7, 2023, 11:47pm
2
hi @whatplan
By default, two Machines deploy for availability. For the fly log shipper issue, you could try this solution: Fly Log Shipper Duplicate Logs on Apps v2 - #4 by charsleysa
Or you can scale down to one machine with fly scale count 1
.
Your app should then stay at one machine when you deploy, but if you ever scale to zero then use fly deploy --ha=false
to make sure you only get one Machine on deploy.
Thank you so much for linking that other post, I didn’t see it when I had searched before posting.
Also appreciate you moving along the docs pr, should help avoid this in the future
1 Like
system
Closed
September 14, 2023, 11:58pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.