aboutsummaryrefslogtreecommitdiff
path: root/weed/server/master_server.go
AgeCommit message (Collapse)AuthorFilesLines
2025-09-18master: Fix raft url (#7255)Chris Lu1-4/+7
* fix signature * fix url scheme
2025-09-04add disable volume_growth flag (#7196)Dmitriy Pavlov1-0/+4
2025-08-06remove spoof-able request header (#7103)Chris Lu1-6/+0
* remove spoof-able request header https://github.com/seaweedfs/seaweedfs/issues/7094#issuecomment-3158320497 * Update weed/security/guard.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-06remote address parsing should handle special cases (#7101)Chris Lu1-4/+2
* remote address parsing should handle special cases * handling ipv6 * simplify * Update weed/security/guard.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update weed/security/guard.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * x-real-ip * Update guard.go * fixes Hostname Whitelisting: Fully restored - supports localhost, example.com, etc. IP Whitelisting: Still works - supports exact IPs and CIDR ranges Header Support: Consistent handling of X-Forwarded-For, X-Real-IP * simplify * Update weed/security/guard.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update weed/security/guard.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update guard.go * adjust function signature * Update weed/security/guard.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * indention * skip empty host --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-07-06use float for sleep secondschrislu1-1/+1
fix https://github.com/seaweedfs/seaweedfs/pull/6795
2025-06-28remove features and deployments fieldschrislu1-8/+0
2025-06-28add telemetry (#6926)Chris Lu1-0/+30
* add telemetry * fix go mod * add default telemetry server url * Update README.md * replace with broker count instead of s3 count * Update telemetry.pb.go * github action to deploy
2025-05-21Added middleware for processing request_id grpc and http requests (#6805)Aleksey Kosov1-12/+12
2025-01-30Remove rate limit semaphore on master's leader selection logic. (#6494)Lisandro Pin1-5/+0
This was introduced by 054374c7 (2024-03-12) and serves no practical purpose, yet it caps the maximum QPS master servers can handle.
2024-12-02[security] reload whiteList on http seerver (#6302)Konstantin Lebedev1-1/+12
* reload whiteList * white_list add to scaffold
2024-11-26[master] update LastLeaderChangeTime for hashicorp raft (#6292)Konstantin Lebedev1-1/+0
2024-11-23wait a bit before getting the next volume id if the leader is recently electedchrislu1-0/+3
2024-09-29skip resource heavy commands from running on master nodeschrislu1-0/+4
2024-08-21add parallel vacuumingchrislu1-5/+7
2024-08-19add http endpoint to get the size of a collection (#5910)Riccardo Bertossa1-0/+1
2024-07-26fix allocate reduplicated volumeId to different volume (#5811)wyang1-15/+0
* fix allocate reduplicated volumeId to different volume * only check barrier when read --------- Co-authored-by: Yang Wang <yangwang@weride.ai>
2024-07-16Added tls for http clients (#5766)vadimartynov1-1/+2
* Added global http client * Added Do func for global http client * Changed the code to use the global http client * Fix http client in volume uploader * Fixed pkg name * Fixed http util funcs * Fixed http client for bench_filer_upload * Fixed http client for stress_filer_upload * Fixed http client for filer_server_handlers_proxy * Fixed http client for command_fs_merge_volumes * Fixed http client for command_fs_merge_volumes and command_volume_fsck * Fixed http client for s3api_server * Added init global client for main funcs * Rename global_client to client * Changed: - fixed NewHttpClient; - added CheckIsHttpsClientEnabled func - updated security.toml in scaffold * Reduce the visibility of some functions in the util/http/client pkg * Added the loadSecurityConfig function * Use util.LoadSecurityConfiguration() in NewHttpClient func
2024-07-16[master] Do Automatic Volume Grow in background (#5781)Konstantin Lebedev1-9/+9
* Do Automatic Volume Grow in backgound * pass lastGrowCount to master * fix build * fix count to uint64
2024-06-14Added context for the MasterClient's methods to avoid endless loops (#5628)vadimartynov1-2/+2
* Added context for the MasterClient's methods to avoid endless loops * Returned WithClient function. Added WithClientCustomGetMaster function * Hid unused ctx arguments * Using a common context for the KeepConnectedToMaster and WaitUntilConnected functions * Changed the context termination check in the tryConnectToMaster function * Added a child context to the tryConnectToMaster function * Added a common context for KeepConnectedToMaster and WaitUntilConnected functions in benchmark
2024-04-29reduce ambiguity about use memory_sequencer (#5555)shenxingwuying1-1/+3
2024-04-18avoid repeated calls to heavy-weighted viperchrislu1-1/+6
2024-04-18renamechrislu1-10/+10
2023-08-24Implement SRV lookups for filer (#4767)Nico D'Cotta1-1/+1
2023-07-04proxy to master uses http addresschrislu1-1/+1
fix https://github.com/seaweedfs/seaweedfs/issues/4607
2023-03-19avoid lower casing the commandchrislu1-1/+1
fix https://github.com/seaweedfs/seaweedfs/pull/4321
2022-10-06master server graceful stop (#3797)Konstantin Lebedev1-11/+26
2022-08-26avoid race conditions for OnPeerUpdate (#3525)Konstantin Lebedev1-1/+1
https://github.com/seaweedfs/seaweedfs/issues/3524
2022-08-24Add raft server access mutex to avoid races (#3503)Patrick Schmidt1-6/+16
2022-08-23ping timeout at 15 secondschrislu1-1/+1
this 72 minute timeout setting seems unreasonably long 15 seconds is around the time when a new raft leader should be elected.
2022-08-23remove old raft servers if they don't answer to pings for too long (#3398)askeipx1-4/+29
* remove old raft servers if they don't answer to pings for too long add ping durations as options rename ping fields fix some todos get masters through masterclient raft remove server from leader use raft servers to ping them CheckMastersAlive for hashicorp raft only * prepare blocking ping * pass waitForReady as param * pass waitForReady through all functions * waitForReady works * refactor * remove unneeded params * rollback unneeded changes * fix
2022-08-11avoid infinite loop WaitUntilConnected() (#3431)Konstantin Lebedev1-3/+1
https://github.com/seaweedfs/seaweedfs/issues/3421
2022-08-01Merge pull request #3338 from kmlebedev/issues/3083Chris Lu1-50/+12
rollback over onPeerUpdate implementation of automatic clean-up of failed servers in favor of synchronous ping
2022-08-01rollback over onPeerupdate implementation of automatic clean-up of failed ↵Konstantin Lebedev1-98/+12
servers in favor of synchronous ping
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-11/+11
2022-07-28refactorchrislu1-1/+1
2022-07-28add dc and rackchrislu1-1/+1
2022-07-27"github.com/chrislusf/raft" => "github.com/seaweedfs/raft"chrislu1-1/+1
2022-07-26fix RUnlock of unlocked RWMutexKonstantin Lebedev1-1/+0
2022-07-21avoid deadlockKonstantin Lebedev1-2/+10
2022-07-21use safe onPeerUpdateDoneCnsKonstantin Lebedev1-12/+32
2022-07-20onPeerUpdateGoroutineCount use int32Konstantin Lebedev1-4/+4
2022-07-20fix designKonstantin Lebedev1-5/+6
2022-07-20add waiting log messageKonstantin Lebedev1-0/+1
2022-07-20check for ping before deleting raft serverKonstantin Lebedev1-1/+20
https://github.com/chrislusf/seaweedfs/issues/3083
2022-07-19fix typoKonstantin Lebedev1-8/+11
add remove logs
2022-05-30fresh filer store bootstrap from the oldest peerchrislu1-1/+1
2022-05-03fix wrong assignmentchrislu1-1/+2
2022-05-02fix segmentation violationchrislu1-0/+1
fix https://github.com/chrislusf/seaweedfs/issues/3000
2022-05-01filer: add filer groupchrislu1-2/+2
2022-04-07fix master uiKonstantin Lebedev1-23/+30