Konstantin Lebedev
4d08393b7c
filer prefer volume server in same data center ( #3405 )
* initial prefer same data center
https://github.com/seaweedfs/seaweedfs/issues/3404
* GetDataCenter
* prefer same data center for ReplicationSource
* GetDataCenterId
* remove glog
2 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
2 years ago
chrislu
9f9ef1340c
use streaming mode for long poll grpc calls
streaming mode would create separate grpc connections for each call.
this is to ensure the long poll connections are properly closed.
3 years ago
Chris Lu
2789d10342
go fmt
3 years ago
Chris Lu
e5fc35ed0c
change server address from string to a type
3 years ago
Chris Lu
5a0f92423e
use grpc and jwt
3 years ago
Chris Lu
d1d1fc772c
move some volume lookup operations to grpc
jwt related lookup will come in next commit
3 years ago
Chris Lu
6daa932f5c
refactoring to get master function, instead of passing master values directly
this will enable retrying later
4 years ago
Chris Lu
892e726eb9
avoid reusing context object
fix https://github.com/chrislusf/seaweedfs/issues/1182
5 years ago
Chris Lu
72a64a5cf8
use the same context object in order to retry
5 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
5 years ago
j.laycock
595a1beff0
Swap imports to use joeslay
5 years ago
Chris Lu
713596e781
caching ec shard locations
6 years ago
Chris Lu
e108688990
avoid grpc 5 seconds timeout
some operations may take longer than 5 seconds.
only keep the timeout for raft operations
6 years ago
Chris Lu
77b9af531d
adding grpc mutual tls
6 years ago
chenwanli
0a3e83a36a
Set timeout for master and volume non-streaming rpc
6 years ago
Chris Lu
91ac2e0dd9
go fmt
6 years ago
Chris Lu
ff66269b62
use grpc to replace http APIs for batch volume id lookup and batch delete
1. remove batch volume id lookup http API /vol/lookup
2. remove batch delete http API /delete
6 years ago
Chris Lu
5ce6bbf076
directory structure change to work with glide
glide has its own requirements. My previous workaround caused me some
code checkin errors. Need to fix this.
9 years ago
Stuart P. Bentley
f0c2a2dcb3
Change all chrislusf/weed-fs links to point to chrislu/seaweedfs
10 years ago
chrislusf
cc724305b6
Using Url instead of PublicUrl for volume server
Originally there are only url(ip + port), and publicUrl. Because ip was
used to listen for http service, it has less flexibility and volume
server has to be accessed via publicUrl.
Recently we added ip.bind, for binding http service.
With this change, url can be used to connect to volume servers. And
publicUrl becomes a free style piece of url information, it does not
even need to be unique.
10 years ago
Chris Lu
352ef2830c
Add caching volume locations to batch volume id lookup.
10 years ago
yanyiwu
cacfc85869
add some String() to make codes easier to read and debug
10 years ago
Brian McQueen
d56c748fa8
switch it back to chris's repo
10 years ago
Brian McQueen
c0dfdf4392
switch to my forked repo
10 years ago
Chris Lu
179d36ba0e
formatting code by: goimports -w=true .
10 years ago
wyy
4126280d55
use github.com/chrislusf instead of github.com/aszxqw
10 years ago
wyy
1cd19447e3
use github.com/aszxqw instead of code.google.com/p
10 years ago
Chris Lu
a437d77431
only set lookup cache when successful
11 years ago
Chris Lu
b5f99b26eb
Add volume id lookup caching
11 years ago
Chris Lu
cbc5a76e80
Added batch file deleting.
11 years ago
Chris Lu
2eb9014606
rename file from lookup_volume_id.go to lookup.go
11 years ago
Chris Lu
5878f7c3a1
refactor lookup result types into package "operation"
11 years ago
Chris Lu
2861275fb6
working filer server!
11 years ago
Chris Lu
edae676913
1. volume server auto detect clustered master nodes
2. remove operation package dependency on storage
11 years ago
Chris Lu
d0473e27d9
refactor api: lookup file id
11 years ago
Chris Lu
5eac4f043a
remove a comment
11 years ago
Chris Lu
db8e27be6e
add lots of error checking by GThomas
12 years ago
Chris Lu
79d11ac951
go vet
12 years ago
Chris Lu
5071f528f6
testing compilation with remove package
12 years ago
Chris Lu
55f2627fcf
testing new directory structure
12 years ago
Chris Lu
ab6fb13ad7
avoid the "src" folder
12 years ago
Chris Lu
cb4e8ec16b
re-organize code directory structure
12 years ago
Chris Lu
b0c7df0c3b
go fmt for all source codes
12 years ago
Chris Lu
bf9c4ed033
Revert "add cmd/dump - a dumper"
This reverts commit 5d2a1e8d48
.
12 years ago
Tamás Gulácsi
5d2a1e8d48
add cmd/dump - a dumper
Walk needed to be added to NeedleMap and CompactMap, to be able to add WalkKeys and WalkValues to volume. This is needed for iterating through all the stored needles in a volume - this was dump's purpose.
12 years ago
Chris Lu
7ee12f14a8
add option to set server's ip address
12 years ago
Chris Lu
5e97179d06
refactoring content uploading
12 years ago
Chris Lu
7d8e9f829c
more error messages
12 years ago
Chris Lu
462f2ed958
for moved volumes, redirect with code 501
12 years ago