influxdata / influxdata/influxdb-java
How to increase the ping check period?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 1.2k
- Forks
- 469
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I've a Spring application running InfluxDB communication. On the logs of application I can see the ping Influx connection check periodically by follow log:
```
2021-01-26 14:02:31,633 INFO [http-nio-80-exec-8] class:OkHttpClient, --> GET http://influxdb.intranet/ping
2021-01-26 14:02:31,633 INFO [http-nio-80-exec-8] class:OkHttpClient, --> END GET
2021-01-26 14:02:31,637 INFO [http-nio-80-exec-8] class:OkHttpClient, <-- 204 https://influxdb.intranet/ping (3ms)
2021-01-26 14:02:31,637 INFO [http-nio-80-exec-8] class:OkHttpClient, server: nginx/1.13.0
2021-01-26 14:02:31,637 INFO [http-nio-80-exec-8] class:OkHttpClient, date: Tue, 26 Jan 2021 17:02:31 GMT
2021-01-26 14:02:31,637 INFO [http-nio-80-exec-8] class:OkHttpClient, x-influxdb-version: relay
2021-01-26 14:02:31,637 INFO [http-nio-80-exec-8] class:OkHttpClient, <-- END HTTP
```
This log check is flooding my log console and I use the connection InfluxDB 1x/min so I don't need the ping check with short period. Besides that, the threads are execute by series and this check is delayed other jobs. There are a way to increase the ping check connection period time?
Bean configuration:
```
@Bean(name = "influxDBConn")
public InfluxDB influxDB() {
try {
InfluxDB influxDB = InfluxDBFactory.connect(this.influxUri, this.influxUsername, this.influxPassword);
influxDB.setLogLevel(InfluxDB.LogLevel.FULL);
Pong response = influxDB.ping();
if (response.getVersion().equalsIgnoreCase("unknown")) {
LOGGER.error("**connectInfluxDB: Error pinging server.");
throw new RuntimeException("Error pinging InfluxDB sever");
} else {
LOGGER.info("InfluxDB ping: {}", influxDB.ping());
}
return influxDB;
} catch (InfluxDBIOException e) {
LOGGER.info("M=influxDB, Msg=Error to create InfluxDB connection bean. Error: " + e.getMessage());
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Bean-Konfiguration im Issue und verfolge InfluxDBFactory.connect sowie die Ping-Aufrufe, um herauszufinden, welche Komponente die wiederkehrenden /ping-Anfragen ausführt. Im Issue wird weder eine Repository-Datei noch ein Test genannt; abgeschlossen ist die Aufgabe, wenn festgestellt wurde, ob das Intervall konfigurierbar ist, und die unterstützte Einstellung dokumentiert oder getestet wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- databases
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100