1
0
mirror of https://github.com/minio/minio.git synced 2025-01-30 16:06:00 -05:00

22 Commits

Author SHA1 Message Date
Harshavardhana
0e4794ea50
fix: allow S3 gateway passthrough for SSE-S3 header ()
only in case of S3 gateway we have a case where we
need to allow for SSE-S3 headers as passthrough,

If SSE-C headers are passed then they are rejected
if KMS is not configured.
2021-04-08 16:40:38 -07:00
Klaus Post
692ff41ef7
Unwrap network errors ()
Alternative to 

Instead of having an upstream fix, do unwrap when checking network errors.

'As' will also work when destination is an interface as checked by the tests.
2020-11-20 22:55:35 -08:00
Shireesh Anjal
7bc47a14cc
Rename OBD to Health ()
Also, Remove thread stats and openfds from the health report 
as we already have process stats and numfds
2020-11-20 12:52:53 -08:00
Harshavardhana
f794fe79e3
fix: network shutdown was not handle properly ()
fixes a regression introduced in , due
to the error returned by rest.Client being typed
i.e *rest.NetworkError - IsNetworkHostDown function
didn't work as expected to detect network issues.

This in-turn aggravated the situations when nodes
are disconnected leading to performance loss.
2020-11-19 13:53:49 -08:00
Klaus Post
e63a44b734
rest client: Expect context timeouts for locks ()
Add option for rest clients to not mark a remote offline for context timeouts.

This can be used if context timeouts are expected on the call.
2020-10-29 09:52:11 -07:00
Harshavardhana
2760fc86af
Bump default idleConnsPerHost to control conns in time_wait ()
This PR fixes a hang which occurs quite commonly at higher concurrency
by allowing following changes

- allowing lower connections in time_wait allows faster socket open's
- lower idle connection timeout to ensure that we let kernel
  reclaim the time_wait connections quickly
- increase somaxconn to 4096 instead of 2048 to allow larger tcp
  syn backlogs.

fixes 
2020-10-12 14:19:46 -07:00
Harshavardhana
66b4a862e0
fix: network failure err check should ignore context canceled errors ()
context canceled errors bubbling up from the network
layer has the potential to be misconstrued as network
errors, taking prematurely a server offline and triggering
a health check routine avoid this potential occurrence.
2020-09-25 14:35:47 -07:00
Harshavardhana
7a5271ad96
fix: re-use connections in webhook/elasticsearch ()
- elasticsearch client should rely on the SDK helpers
  instead of pure HTTP calls.
- webhook shouldn't need to check for IsActive() for
  all notifications, failure should be delayed.
- Remove DialHTTP as its never used properly

Fixes 
2020-04-28 13:57:56 -07:00
Sidhartha Mani
0c80bf45d0
Implement oboard diagnostics admin API ()
- Implement a graph algorithm to test network bandwidth from every 
  node to every other node
- Saturate any network bandwidth adaptively, accounting for slow 
  and fast network capacity
- Implement parallel drive OBD tests
- Implement a paging mechanism for OBD test to provide periodic updates to client
- Implement Sys, Process, Host, Mem OBD Infos
2020-03-26 21:07:39 -07:00
Anis Elleuch
7432b5c9b2
Use user CAs in checkEndpoint() call ()
The server info handler makes a http connection to other
nodes to check if they are up but does not load the custom
CAs in ~/.minio/certs/CAs.

This commit fix it.

Co-authored-by: Harshavardhana <harsha@minio.io>
2020-02-02 07:15:29 +05:30
Harshavardhana
e2b3c083aa
fix: close and drain the response body always () 2020-01-21 02:46:58 -08:00
Harshavardhana
5d65428b29
Handle localhost distributed setups properly ()
Fixes an issue reported by @klauspost and @vadmeste

This PR also allows users to expand their clusters
from single node XL deployment to distributed mode.
2019-11-26 11:42:10 -08:00
Harshavardhana
9e7a3e6adc Extend further validation of config values ()
- This PR allows config KVS to be validated properly
  without being affected by ENV overrides, rejects
  invalid values during set operation

- Expands unit tests and refactors the error handling
  for notification targets, returns error instead of
  ignoring targets for invalid KVS

- Does all the prep-work for implementing safe-mode
  style operation for MinIO server, introduces a new
  global variable to toggle safe mode based operations
  NOTE: this PR itself doesn't provide safe mode operations
2019-10-30 23:39:09 -07:00
Harshavardhana
d48fd6fde9
Remove unusued params and functions () 2019-10-15 18:35:41 -07:00
Praveen raj Mani
8700945cdf Handle connection failures on webhook/url pings ()
Properly handle connection failures while replaying events

Fixes 
2019-09-12 16:44:51 -07:00
Praveen raj Mani
e96f19c867 Use default ports for the schemes when dialing ()
Fixes 
2019-08-13 16:43:11 +05:30
Praveen raj Mani
efb8b00db0 Preserve tailing backslash in URL paths ()
Fixes 
2019-07-25 20:55:09 -07:00
Praveen raj Mani
998f01fadc Support IPv6 hosts for postgres connections ()
Fixes 
2019-05-03 17:31:33 +05:30
kannappanr
5ecac91a55
Replace Minio refs in docs with MinIO and links () 2019-04-09 11:39:42 -07:00
Harshavardhana
bebaff269c Support IPv6 in minio command line ()
Fixes 
2018-12-14 13:07:46 +05:30
ebozduman
f16bfda2f2 Remove panic() and handle it appropriately ()
This is an effort to remove panic from the source. 
Add a new call called CriticialIf, that calls LogIf and exits. 
Replace panics with one of CriticalIf, FatalIf and a return of error.
2018-04-19 17:24:43 -07:00
Bala FA
0e4431725c make notification as separate package ()
* Remove old notification files

* Add net package

* Add event package

* Modify minio to take new notification system
2018-03-15 13:03:41 -07:00