in lib/server.go [51:60]
func (s *Server) SetConfig(config *Config) {
glog.Infof("Updating server config")
// update server list because Algorithm instance was recreated
config.Algorithm.UpdateStableServerList(s.stableServers)
config.Algorithm.UpdateRCServerList(s.rcServers)
atomic.SwapPointer((*unsafe.Pointer)(unsafe.Pointer(&s.config)), unsafe.Pointer(config))
// update the throttle rate
s.throttle.setRate(config.Rate)
glog.Infof("Updated server config")
}