Skip to content

Multi-node acceptance of data #45

@leehomewl

Description

@leehomewl

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions