Skip to content

Commit

Permalink
config: memsys read-write; restart: not a warning
Browse files Browse the repository at this point in the history
* `memsys` is already one of the restart-required sections
* when starting up, we re-initiate the cluster map to accept joins
* (and then compare)

Signed-off-by: Alex Aizman <alex.aizman@gmail.com>
  • Loading branch information
alex-aizman committed Jul 18, 2022
1 parent 93e19be commit 32a618a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ais/htrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,9 @@ func (h *htrun) isIntraCall(hdr http.Header, fromPrimary bool) (err error) {
}
// we still trust the request when the sender's Smap is more current
if callerVer > smap.version() {
glog.Errorf("%s: %s < %s-Smap(v%s) - proceeding anyway...", h.si, smap, callerName, callerSver)
if h.ClusterStarted() {
glog.Errorf("%s: %s < %s-Smap(v%s) - proceeding anyway...", h.si, smap, callerName, callerSver)
}
runtime.Gosched()
return
}
Expand Down
6 changes: 3 additions & 3 deletions cmn/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 +530,12 @@ type (
MinPctFree int `json:"min_pct_free"`
}
MemsysConfToUpdate struct {
MinFree *cos.Size `json:"min_free,omitempty" list:"readonly"`
MinFree *cos.Size `json:"min_free,omitempty"`
DefaultBufSize *cos.Size `json:"default_buf,omitempty"`
SizeToGC *cos.Size `json:"to_gc,omitempty"`
HousekeepTime *cos.Duration `json:"hk_time,omitempty"`
MinPctTotal *int `json:"min_pct_total,omitempty" list:"readonly"`
MinPctFree *int `json:"min_pct_free,omitempty" list:"readonly"`
MinPctTotal *int `json:"min_pct_total,omitempty"`
MinPctFree *int `json:"min_pct_free,omitempty"`
}

TCBConf struct {
Expand Down

0 comments on commit 32a618a

Please sign in to comment.