@@ -217,16 +217,20 @@ func (b *bgpserver) configure() error {
217217 if err != nil {
218218 return err
219219 }
220+ log .Debugln ("bgp: setAddresses took" , time .Since (startTime ))
220221 // log.Debugln("bgp: Setting addresses complete")
221222
223+ configuredStartTime := time .Now ()
222224 configuredAddrs , err := b .bgp .Get (b .ctx )
223225 if err != nil {
224226 return err
225227 }
228+ log .Debugln ("bgp: configuredAddrs took" , time .Since (configuredStartTime ))
226229
227230 // Do something BGP-ish with VIPs from configmap
228231 // This only adds, and never removes, VIPs
229232 // log.Debug("bgp: applying bgp settings")
233+ setStartTime := time .Now ()
230234 addrs := []string {}
231235 for ip := range b .config .Config {
232236 addrs = append (addrs , string (ip ))
@@ -235,15 +239,18 @@ func (b *bgpserver) configure() error {
235239 if err != nil {
236240 return err
237241 }
242+ log .Debugln ("bgp: set took" , time .Since (setStartTime ))
238243 // log.Debugln("bgp: done applying bgp settings")
239244
240245 // Set IPVS rules based on VIPs, pods associated with each VIP
241246 // and some other settings bgpserver receives from RDEI.
242247 // log.Debugln("bgp: Setting IPVS settings")
248+ setIPVSStartTime := time .Now ()
243249 err = b .ipvs .SetIPVS (b .nodes , b .config , b .logger )
244250 if err != nil {
245251 return fmt .Errorf ("bgp: unable to configure ipvs with error %v" , err )
246252 }
253+ log .Debugln ("bgp: setIPVS took" , time .Since (setIPVSStartTime ))
247254 // log.Debugln("bgp: IPVS configured")
248255 b .lastReconfigure = time .Now ()
249256
@@ -548,7 +555,7 @@ func (b *bgpserver) performReconfigure() {
548555 log .Debugln ("bgp: running performReconfigure" )
549556
550557 if b .noUpdatesReady () {
551- log .Debugln ("bgp: no updates ready" )
558+ // log.Debugln("bgp: no updates ready")
552559 // last update happened before the last reconfigure
553560 return
554561 }
0 commit comments