Commit graph

168 commits

Author SHA1 Message Date
Evgeniy Kulikov
a9f4ee535a
Update dependencies
- github.com/fasthttp/router v1.1.6
- github.com/nspcc-dev/neofs-api-go v1.0.0
- github.com/prometheus/client_golang v1.6.0
- github.com/prometheus/common v0.10.0
- github.com/spf13/viper v1.7.0
- github.com/valyala/fasthttp v1.14.0
- go.uber.org/zap v1.15.0
- google.golang.org/grpc v1.29.1
2020-06-03 06:30:36 +03:00
Evgeniy Kulikov
39e4a770bb
pprof: fix route params 2020-05-12 11:20:28 +03:00
Evgeniy Kulikov
0a55a84863
metrics: fix doc-comments 2020-05-12 11:20:28 +03:00
Evgeniy Kulikov
21fc1c6e6c
log: fix routes in log message 2020-05-12 11:19:07 +03:00
Evgeniy Kulikov
54071b5da4
routing: remove trailing slash 2020-05-12 11:18:23 +03:00
Evgeniy Kulikov
12a3801f3d
errors: correct handling 404 2020-04-22 13:34:48 +03:00
Evgeniy Kulikov
96e24653f7
modules: update to neofs-api 0.7.1 2020-04-22 13:16:58 +03:00
Evgeniy Kulikov
dc3d041ad6
fixes for Dockerfile 2020-04-15 11:22:55 +03:00
Evgeniy Kulikov
ea4710eaba
update to new router 2020-04-15 11:10:42 +03:00
Evgeniy Kulikov
164b0870de
refactoring + moved to neofs-api-go 2020-03-31 11:37:10 +03:00
Evgeniy Kulikov
6abd79aa44
Update dependencies
- github.com/nspcc-dev/neofs-api v0.4.1 // v0.4.0 => v0.4.1
- github.com/nspcc-dev/neofs-crypto v0.3.0 // v0.2.3 => v0.3.0
- github.com/prometheus/client_golang v1.5.0 // v1.4.1 => v1.5.0
2020-03-10 14:13:01 +03:00
Evgeniy Kulikov
d0901587e2
simplify main func 2020-03-03 13:36:52 +03:00
Evgeniy Kulikov
2db83caf29
used logger custom interface instead of grpclog.LoggerV2 2020-03-03 13:36:20 +03:00
Evgeniy Kulikov
50e74ee3a1
added reusable pprof endpoints 2020-03-03 13:35:06 +03:00
Evgeniy Kulikov
ad03a95feb
added reusable metrics endpoints 2020-03-03 13:34:52 +03:00
Evgeniy Kulikov
1d5c1897a3
reusable health checkers endpoints 2020-03-03 13:34:26 +03:00
Evgeniy Kulikov
dba58f3935
refactored logger wrapper 2020-02-29 18:00:20 +03:00
Evgeniy Kulikov
5a640fc0fa
remove debug information 2020-02-29 17:07:07 +03:00
Evgeniy Kulikov
131d99a182
fix content-type detection 2020-02-29 16:40:54 +03:00
Evgeniy Kulikov
758006dea0
update makefile dev command 2020-02-29 13:25:22 +03:00
Evgeniy Kulikov
cf0f9ce5f6
fixes for dev version of go.mod 2020-02-28 20:11:20 +03:00
Evgeniy Kulikov
8aef59cdbd
refactoring application: use fasthttp instead echo, add healthcheck handlers, run web server immidiently, close pool connections when stop 2020-02-28 20:07:50 +03:00
Evgeniy Kulikov
7790684726
refactoring connectionpool: add healthcheck, move getConnection and first call reBalance outside constructor 2020-02-28 20:05:25 +03:00
Evgeniy Kulikov
35e2378afc
refactoring receive file handler: use fasthttp instead echo 2020-02-28 20:03:56 +03:00
Evgeniy Kulikov
437133e280
add fasthttp pprof handler 2020-02-28 19:56:50 +03:00
Evgeniy Kulikov
c6a06ca709
add fasthttp metrics handler 2020-02-28 19:56:22 +03:00
Evgeniy Kulikov
d6df78974e
ignore blast benchmark config 2020-02-28 19:52:33 +03:00
Evgeniy Kulikov
dd213b0c41
update makefile commands: dev, image, version 2020-02-28 19:51:49 +03:00
Evgeniy Kulikov
a584012d50
update makefile commands: dev, image, version 2020-02-28 19:50:54 +03:00
Evgeniy Kulikov
0ab7893337
add test environments 2020-02-28 19:45:00 +03:00
Evgeniy Kulikov
cee4e6239f
add Println and Printf for zapLogger 2020-02-28 19:44:32 +03:00
Evgeniy Kulikov
772314d156
update dependencies 2020-02-28 19:43:39 +03:00
Evgeniy Kulikov
b8dc1097fb
update dependencies 2020-02-28 19:43:25 +03:00
Evgeniy Kulikov
f867fff1d7
ignore test script 2020-02-27 13:09:53 +03:00
Evgeniy Kulikov
6e917c1982
move rebalance timer to settings 2020-02-27 13:09:27 +03:00
Evgeniy Kulikov
c290e4178a
fix typo 2020-02-27 12:51:11 +03:00
Evgeniy Kulikov
2590784e3a
add replacements for debug 2020-02-25 18:41:19 +03:00
Evgeniy Kulikov
51574e8274
add more debug information to build 2020-02-25 18:39:35 +03:00
Evgeniy Kulikov
4715468f3a
add grpc version to image, add command to build gw with multiple grpc versions 2020-02-25 18:38:47 +03:00
Evgeniy Kulikov
62c6bbd875
refactoring pool, replace zap.Duration with zap.Stringer 2020-02-25 18:35:46 +03:00
Evgeniy Kulikov
cf61136da5
small refactoring 2020-02-25 13:31:20 +03:00
Evgeniy Kulikov
5512bd0b2f
debugging neofs-api 2020-02-20 17:36:44 +03:00
Evgeniy Kulikov
c3a23e9115
debugging gRPC 2020-02-20 17:26:37 +03:00
Evgeniy Kulikov
f86115bf6e
go.sum go.uber.org/atomic v1.5.0 2020-02-19 15:48:53 +03:00
Evgeniy Kulikov
75113f8195
Refactoring connection pool
- replace RWMutex with Mutex
- conns now contains `map[int32][]*node`
- add index field to node struct
- add usedAt field to node struct
- `New` don't store current connection twice
- writes `used_at` of connection into the log
- we check that conn is alive and, that connection used not a long time ago, otherwise, close it
- `getConnection` reset current connection and index on errors
-  `IsAlive` now is a method of `Pool`
-  `IsAlive` creates context with timeout for every health check call of node
2020-02-19 13:55:42 +03:00
Evgeniy Kulikov
65a2da6995
Add constants with default values
- default values constants
- add conn_ttl `GW_CONN_TTL=duration` (gRPC connection time to live)
2020-02-19 13:47:21 +03:00
Evgeniy Kulikov
667a98d22f
Ignore log files 2020-02-19 13:45:09 +03:00
Evgeniy Kulikov
c4963f45bd
use timer instead of ticker 2020-02-14 14:35:35 +03:00
Evgeniy Kulikov
468cf49126
don't panic on http.ErrServerClosed 2020-02-14 13:12:36 +03:00
Evgeniy Kulikov
307f008dac
log elapsed time when could not receive object 2020-02-14 13:12:36 +03:00