[#100] server auto re-binding #109
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-http-gw#109
Loading…
Reference in a new issue
No description provided.
Delete branch "pogpp/frostfs-http-gw:feature/100-rebinding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Pavel Pogodaev p.pogodaev@yadro.com
027f2a1d2e
to5c0247ac05
5c0247ac05
to342c2e0be5
342c2e0be5
to9408cfb704
9408cfb704
tob9bed3109e
b9bed3109e
to6741851a30
6741851a30
tofc50d47ce9
fc50d47ce9
tof3cf796326
@ -61,0 +60,4 @@
settings *appSettings
servers []Server
unbindServers []ServerInfo
mu sync.RWMutex
Let's separate
servers
,unbindServers
andmu
from other fields. It will help see which fields are protected by mutex@ -487,6 +497,7 @@ func (a *app) updateSettings() {
a.settings.setBufferMaxSizeForPut(a.cfg.GetUint64(cfgBufferMaxSizeForPut))
a.settings.setNamespaceHeader(a.cfg.GetString(cfgResolveNamespaceHeader))
a.settings.setDefaultNamespaces(a.cfg.GetStringSlice(cfgResolveDefaultNamespaces))
a.settings.setReconnectInterval(a.cfg.GetDuration(cfgReconnectInterval))
In s3-gw we don't update this interval by sighup why we do this here?
Cause updateSettings() for both update and init
If
reconnect_interval
shouldn't be updated by sighup we can set it only ininit
functionf3cf796326
tocaf494b8a9
caf494b8a9
toa6e8a069e1
Please rebase and make the following changes
Awesome, please consider some improvements with formatting and less mutex usage from #109 (comment)
a6e8a069e1
tofb76f69b2a
fb76f69b2a
to11965deb41
vulncheck
@alexvanin