You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added:
- Graceful shutdown: Implemented graceful shutdown for the HTTP server to handle termination signals (SIGINT, SIGTERM).
- Log level configuration: Added a --log-level flag to configure logging levels (debug, info, warn, error, fatal, panic).
- DNS query count metric: Introduced a new Prometheus metric dnsexp_dns_query_count to track the total number of DNS queries.
- Error context: Enhanced error messages in loadConfig with additional context for easier debugging.
- DNS client pooling: Implemented a sync.Pool to reuse DNS clients, reducing memory allocations and improving performance.
Changed:
- Logging level for successful queries: Reduced logging level for successful DNS queries from Info to Debug to reduce log noise.
- Worker pool buffer size: Reduced the buffer size of the jobs channel in workerPool to match the workerLimit, optimizing memory usage.
- Validation for DNS record types: Added validation to ensure record_type in the configuration is a valid DNS record type.
Fixed:
- Missing DNS server check: Added a check to ensure the DNS server is specified in the configuration file.
- Error handling: Improved error handling in loadConfig and added context to error messages.
Optimized:
- Concurrency: Optimized the worker pool to limit the number of concurrent DNS queries based on the workerLimit flag.
0 commit comments