Conversation
(cherry picked from commit 0d45f77) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit f8ac48e) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit ff675dc) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit 43ba7ee) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit 1f90615) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit 2977c1f) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit 473db0e) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit 6ef9b7e) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit 091e9a6) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
(cherry picked from commit a588b09) Signed-off-by: Tomas Longo <tomas.longo@sap.com>
KarstenSchnitter
left a comment
There was a problem hiding this comment.
Thanks for the PR and the effort. Still some minor comments.
| retry_info: | ||
| min_delay: 1000ms # defaults to 100ms | ||
| max_delay: 5s # defaults to 2s | ||
|
|
|
|
||
| ### Retry Information | ||
|
|
||
| Data Prepper gives clients a hint on how long to wait for the next request in case backpressure builds up. The retry information is implemented as exponential backoff, with a max delay of `retry_info.max_delay`. |
There was a problem hiding this comment.
| Data Prepper gives clients a hint on how long to wait for the next request in case backpressure builds up. The retry information is implemented as exponential backoff, with a max delay of `retry_info.max_delay`. | |
| Data Prepper replies with a `RetryInfo` specifying how long to wait for the next request in case backpressure builds up. The retry information is implemented as exponential backoff, with a max delay of `retry_info.max_delay`. |
| import com.linecorp.armeria.server.encoding.DecodingService; | ||
| import org.opensearch.dataprepper.GrpcRequestExceptionHandler; | ||
| import org.opensearch.dataprepper.plugins.codec.CompressionOption; | ||
| import org.opensearch.dataprepper.plugins.health.HealthGrpcService; | ||
| import org.opensearch.dataprepper.plugins.source.otellogs.certificate.CertificateProviderFactory; | ||
| import com.linecorp.armeria.server.Server; | ||
| import com.linecorp.armeria.server.ServerBuilder; | ||
| import com.linecorp.armeria.server.grpc.GrpcService; | ||
| import com.linecorp.armeria.server.grpc.GrpcServiceBuilder; | ||
| import io.grpc.MethodDescriptor; | ||
| import io.grpc.ServerInterceptor; | ||
| import io.grpc.ServerInterceptors; | ||
| import io.grpc.protobuf.services.ProtoReflectionService; | ||
| import java.io.ByteArrayInputStream; | ||
| import java.nio.charset.StandardCharsets; | ||
| import java.time.Duration; | ||
| import java.util.Collections; | ||
| import java.util.List; | ||
| import java.util.concurrent.ExecutionException; | ||
| import java.util.concurrent.Executors; |
There was a problem hiding this comment.
Can you do something to your IDE configuration to avoid reordering of the dependencies?
| Duration defaultMinDelay = Duration.ofMillis(100); | ||
| Duration defaultMaxDelay = Duration.ofMillis(2000); |
There was a problem hiding this comment.
Provide these values a constants in the class. You can even just define something like this:
// Default RetryInfo with minimum 100ms and maximum 2s
private final RetryInfoConfig DEFAULT_RETRY_INFO = new RetryInfoConfig(Duration.ofMillis(100), Duration.ofMillis(2000));| settings.put(SSL_KEY_FILE, sslKeyFile); | ||
| settings.put(THREAD_COUNT, threadCount); | ||
| settings.put(MAX_CONNECTION_COUNT, maxConnectionCount); | ||
| settings.put(OTelLogsSourceConfig.RETRY_INFO, new RetryInfoConfig(Duration.ofMillis(50), Duration.ofMillis(100))); |
There was a problem hiding this comment.
Can OTelLogsSourceConfig.RETRY_INFO be inlined to RETRY_INFO?
There was a problem hiding this comment.
done: Added a static import, if that's what you meant.
|
|
||
| ### Retry Information | ||
|
|
||
| Data Prepper gives clients a hint on how long to wait for the next request in case backpressure builds up. The retry information is implemented as exponential backoff, with a max delay of `retry_info.max_delay`. |
There was a problem hiding this comment.
See comment in logs source README.md
|
|
||
| private GrpcExceptionHandlerFunction createGrpExceptionHandler() { | ||
| Duration defaultMinDelay = Duration.ofMillis(100); | ||
| Duration defaultMaxDelay = Duration.ofMillis(2000); |
There was a problem hiding this comment.
See comment in OTelLogsSource.
...java/org/opensearch/dataprepper/plugins/source/otelmetrics/OtelMetricsSourceConfigTests.java
Show resolved
Hide resolved
|
|
||
| ### Retry Information | ||
|
|
||
| Data Prepper gives clients a hint on how long to wait for the next request in case backpressure builds up. The retry information is implemented as exponential backoff, with a max delay of `retry_info.max_delay`. |
There was a problem hiding this comment.
See comment in logs source README.md.
| Duration defaultMinDelay = Duration.ofMillis(100); | ||
| Duration defaultMaxDelay = Duration.ofMillis(2000); |
There was a problem hiding this comment.
See comment in OTelLogsSource.
Signed-off-by: Tomas Longo <tomas.longo@sap.com>
No description provided.