Milos Gajdos
b6fb969ab9
Add List and Lookup implementation. Default error for not implement.
2019-07-27 16:11:05 +01:00
Milos Gajdos
22d0f1f08f
Changed documentation.
2019-07-27 16:08:14 +01:00
Milos Gajdos
c3a8146d99
Added outline of router/service package.
2019-07-27 16:08:14 +01:00
Milos Gajdos
2338780a61
Full router RPC coverage
2019-07-27 16:08:14 +01:00
Milos Gajdos
e22c4b4c07
table package is no more. Cleaned up unnecessary code, too.
2019-07-27 16:04:08 +01:00
Asim Aslam
4e27aac398
regen router proto
2019-07-26 18:07:36 -07:00
Asim Aslam
7ca06f0c1d
set router proto package name to go.micro.router
2019-07-26 18:07:14 -07:00
Asim Aslam
7ca8f8f0ab
Merge pull request #611 from milosgajdos83/rpc-router
...
Adds new RPC methods to router service interface
2019-07-24 13:30:29 -07:00
Milos Gajdos
9ad5ae6644
Adds new RPC methods to router service interface
...
We have added Advertise() and Process() RPCs in this commit.
2019-07-24 21:07:04 +01:00
Asim Aslam
220a8fafb1
Merge pull request #610 from milosgajdos83/proxy-watch
...
Adds route watcher to mucp.Proxy
2019-07-24 11:19:52 -07:00
Milos Gajdos
809de7a052
Mutex Unlock when we fail to store route in cache.
2019-07-24 19:13:05 +01:00
Milos Gajdos
23f0231a09
Adds route watcher to mucp.Proxy
2019-07-24 19:03:13 +01:00
Asim Aslam
74cbce72df
Merge pull request #609 from milosgajdos83/proxy-router-interface
...
mucp Proxy no longer uses RPC interface of router.Router directly
2019-07-24 10:40:33 -07:00
Milos Gajdos
b55adc0c30
mucp Proxy no longer uses RPC interface of router.Router directly
2019-07-24 18:32:39 +01:00
Asim Aslam
388ac34b7c
Merge pull request #608 from milosgajdos83/router-cleanup
...
Small router refactoring
2019-07-24 09:46:48 -07:00
Milos Gajdos
13a8cfe7f3
Small function documentation update
2019-07-24 17:22:27 +01:00
Milos Gajdos
1e94d9fe5a
Router cleanup and refactoring for win and profit.
...
This commit adds the following changes to router package:
* it refactors Advertise() function which now does only what
it claims to do: advertising
* various router packages functions/methods have been renamed to make
their functionality more obvious and more in line with what they actually do
* function documentation changes related to the above bullet points
2019-07-24 17:16:52 +01:00
Asim Aslam
49dcc3d1bd
Remove readme and examples from web repo
2019-07-22 09:57:34 -07:00
Milos Gajdos
481ebe9d4f
Merge pull request #604 from BruceWangNo1/patch-1
...
Update client.go
2019-07-22 10:55:55 +01:00
Bruce Wang
502f6d3e9f
Update client.go
...
fixed one typo
2019-07-22 15:41:14 +08:00
Asim Aslam
8f2585724c
Merge pull request #598 from unistack-org/ipv6fix
...
bunch of other ipv6 fixes
2019-07-18 07:24:47 -07:00
1217ca94b1
bunch of other ipv6 fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-07-18 08:59:53 +03:00
Asim Aslam
96cf14ed53
Merge pull request #591 from milosgajdos83/advert-damp
...
[WIP] Fixes advert route event dampening behaviour
2019-07-17 08:12:35 -07:00
Asim Aslam
3a8edd705c
Merge pull request #594 from unistack-org/ipv6
...
fix ipv6 addr parsing
2019-07-17 07:51:17 -07:00
Milos Gajdos
94b6455577
Increment WaitGroup before launching advertiseEvents goroutine
2019-07-17 13:02:47 +01:00
e688ab0a45
fix ipv6 addr parsing and using
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-07-17 12:20:29 +03:00
Milos Gajdos
2803146673
Renaming rampage
...
Addressing the comments in #591 , router.String() now returns "default"
Furthermore, a tonne of other renaming has been included in this commit
as a result of running go vet ./... inside the router package.
2019-07-17 00:06:11 +01:00
Asim Aslam
d4fefc4b76
Merge pull request #592 from unistack-org/speedup
...
changes to minimize allocations and provide useful info
2019-07-16 14:41:11 -07:00
a3bddf5839
changes to minimize allocations and provide useful info
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-07-17 00:21:03 +03:00
Milos Gajdos
92495d22db
Fixes advert dampening behaviour.
...
This commit adds the following changes:
* advert now stores a list of route events as opposed to just last one
* attempt to dedup route events before appending them to advert
* have max suppress threshold for long time suppressed adverts
* decaying events on every advert tick
Originally we werent decaying penalties on every advert tick.
That was incorrect behaviour. Furthermore some events would end up being
accumulated potentially causing memory leaks.
We were also overriding the last received router event which was causing
incorrect sequence of events to be applied when received by a receiver:
Create, Delete would be "squashed" into Delete only which would be
nonsensical since the Create event would never be delivered hence we
would be deleting nonexistent routes.
Not Decaying the events on every tick or not having the max suppression
threshold could lead to DoS by growing the router memory infinitely.
2019-07-16 19:00:25 +01:00
Asim Aslam
8c7e35c3c6
Merge pull request #587 from milosgajdos83/registry-copy-perf
...
Preallocate slices in registry.Copy() to avoid append() reallocations when copying data
2019-07-15 07:04:49 -07:00
Milos Gajdos
c108188d65
Preallocate nodes slice in addNodes before populating it
2019-07-15 14:47:33 +01:00
Milos Gajdos
609934ce99
Preallocate slices; avoide append() reallocations when copying data
2019-07-15 11:13:58 +01:00
Asim Aslam
aa79c41fc5
update tunnel comment
2019-07-14 18:34:32 -07:00
Asim Aslam
a549f92dec
Merge pull request #585 from unistack-org/transport2
...
transport memory: fix races
2019-07-13 19:38:22 -07:00
81d2259fac
transport memory: fix races
...
* fix race with rand.Intn for non default source
* increase random interval to avoid issues when many services
running on the host
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-07-13 23:47:57 +03:00
Asim Aslam
2fecde1dbb
Merge pull request #583 from unistack-org/broker
...
broker memory: fix issue with publish/subscribe
2019-07-13 00:16:28 +01:00
008749b2b0
broker memory: fix issue with publish/subscribe
...
mutex locking have errors, so when two service (one pub, other sub)
try to use this broker it waits for mutex release and nothing works
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-07-13 00:04:53 +03:00
Asim Aslam
3ccb900bca
Merge pull request #582 from unistack-org/memory2
...
memory transport: use write mutex lock when close
2019-07-12 10:29:46 +01:00
a72e1185da
memory transport: use write mutex lock when close
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-07-12 12:11:08 +03:00
Asim Aslam
5157241c88
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-11 21:46:33 +01:00
Asim Aslam
70d811c47a
don't use quic in the test
2019-07-11 21:46:27 +01:00
Asim Aslam
b371704444
Merge pull request #581 from milosgajdos83/proto-update
...
Added proto.Advert, proto.TableEvent is now proto.Event
2019-07-11 21:44:10 +01:00
Asim Aslam
a5f21e69ad
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-11 21:41:00 +01:00
Asim Aslam
6b984136f7
update go mod
2019-07-11 21:40:52 +01:00
Milos Gajdos
9c851f297b
Added proto.Advert type to protobuf definitions
2019-07-11 21:14:34 +01:00
Asim Aslam
dac8a13a77
Merge pull request #580 from milosgajdos83/advertise-table
...
Advertise full table every minute.
2019-07-11 12:49:02 +01:00
Asim Aslam
360e193a01
update go mod
2019-07-11 12:47:50 +01:00
Milos Gajdos
35a1de91a9
Advertise full table every minute.
2019-07-11 12:39:20 +01:00
Asim Aslam
7631463b94
fix compilation errors
2019-07-11 10:47:02 +01:00