-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
Hi! if I need to send to multiple nodes, can you support it?
I found that when I have multiple nodes, I can't control each node to get accurate data.
Here is an example:
influx_config = {
{
host = "192.168.1.2",
port = 8911,
sock_type = "udp",
},
{
host = "192.168.1.3",
port = 8911,
sock_type = "udp",
percent="50%"
},
{
host = "192.168.1.4",
port = 8911,
sock_type = "udp",
},
}
if not logger.initted() then
local ok, err = logger.init(
influx_config[index] -- index is: 1 or 2 or 3, I will perform hash sharding
)
ngx.log(ngx.ERR,'12312312300000000000')
if not ok then
ngx.log(ngx.ERR, "failed to initialize the logger: ",err)
return
end
end
Metadata
Metadata
Assignees
Labels
No labels