diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d42994..5d56824 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,16 +8,29 @@ with `neighbor.asn` (in case of java script errors). This also applies to the API. + In the config `neighbors_store_refresh_interval` needs to be updated. + * Parallel route / neighbor store refreshs: Route servers are not longer queried sequentially. A jitter is applied to not hit all servers exactly at once. + * Parallelism can be tuned through the config parameters: + [server] + + routes_store_refresh_parallelism = 5 + neighbors_store_refresh_parallelism = 10000 + + A value of 1 is a sequential refresh. + * Postgres store backend: Not keeping routes and neighbors in memory might reduce the memory footprint. * Support for alternative pipe in `multi_table` birdwatcher configurations. + + + ## 5.0.1 (2021-11-01) * Fixed parsing extended communities in openbgpd source causing a crash. diff --git a/cmd/alice-lg/main.go b/cmd/alice-lg/main.go index 9e27aeb..3f17fb6 100644 --- a/cmd/alice-lg/main.go +++ b/cmd/alice-lg/main.go @@ -42,8 +42,8 @@ func createAllocProfile(filename string) { } func startMemoryProfile(prefix string) { + t := 0 for { - t := 0 filename := fmt.Sprintf("%s-heap-%03d", prefix, t) runtime.GC() // get up-to-date statistics (according to docs) createHeapProfile(filename) diff --git a/pkg/store/routes_store.go b/pkg/store/routes_store.go index b66cc41..1104d48 100644 --- a/pkg/store/routes_store.go +++ b/pkg/store/routes_store.go @@ -66,7 +66,7 @@ func NewRoutesStore( if refreshInterval == 0 { refreshInterval = time.Duration(5) * time.Minute } - refreshParallelism := cfg.Server.NeighborsStoreRefreshParallelism + refreshParallelism := cfg.Server.RoutesStoreRefreshParallelism if refreshParallelism <= 0 { refreshParallelism = 1 }