influxdb-cpp icon indicating copy to clipboard operation
influxdb-cpp copied to clipboard

Connection to Influx database via UDP

Open caspianron opened this issue 6 years ago • 4 comments

Hi,

I was trying to access influx database via UDP but cannot succeed. The situation here is that I have a specific database name which I have to access everytime, but via UDP connection there is no option to provide a database name. Also what needs to be changed in the influx.conf file for UDP configuration settings? I tried the my project with HTTP and all works fine. Thanks for that. But I would really love to use UDP for my connection as it is much faster and has less overheads. Thanks and waiting for your response.

Regards rG

caspianron avatar Mar 29 '18 07:03 caspianron

Hello,

Could you help me on this issue?

Thanks rG

caspianron avatar Apr 12 '18 08:04 caspianron

Hi, Raunak

I've considered your issue for several days.

Here're my solutions as below: 1 Modify code or grammar of InfluxDB server to support db selection hints.

shortages: not easy to do and update

2 Add administration service to handle db creation.

shortages: this solution may require restart of InfluxDB server to enable latest configuration, this may interrupt continuous business, it maybe intolerable for high-available systems.

3 Deploy InfluxDB as multi-server mode, and new DBs use new instances (new configurations and new ports).

And this solution is my most recommended one.

4 More solutions are on the way.....

I'll commit them ASAP once I've came up with.

Thank you once more.

Orca

orca-zhang avatar Apr 12 '18 10:04 orca-zhang

Hi,

I think you can also consider to use measurement to do the db-like separation such like add some db prefix for measurement's name inside the SDK. InfluxDB is schema free, so you can dynamically add measurements in one db.

Thanks Orca

orca-zhang avatar May 07 '18 13:05 orca-zhang

Is this still a problem?

这仍然是一个问题吗?

bigOconstant avatar Jun 23 '21 15:06 bigOconstant