3c3341e491
The monitor component should be in charge of deciding how it is best to send metrics to other peers and what that means. This adds the PublishMetric() method to the component interface and moves that functionality from Cluster main component to the basic monitor. There is a behaviour change. Before, the metrics where sent only to the leader, while the leader was the only peer to broadcast them everywhere. Now, all peers broadcast all metrics everywhere. This is mostly because we should not rely on the consensus layer providing a Leader(), so we are taking the chance to remove this dependency. Note that in any-case, pubsub monitoring should replace the existing basic monitor. This is just paving the ground. Additionally, in order to not duplicate the multiRPC code in the monitor, I have moved that functionality to go-libp2p-gorpc and added an rpcutil library to cluster which includes useful methods to perform multiRPC requests (some of them existed in util.go, others are new and help handling multiple contexts etc). License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
97 lines
2.4 KiB
JSON
97 lines
2.4 KiB
JSON
{
|
|
"author": "hsanjuan",
|
|
"bugs": {
|
|
"url": "https://github.com/ipfs/ipfs-cluster"
|
|
},
|
|
"gx": {
|
|
"dvcsimport": "github.com/ipfs/ipfs-cluster"
|
|
},
|
|
"gxDependencies": [
|
|
{
|
|
"author": "hsanjuan",
|
|
"hash": "QmZ88KbrvZMJpXaNwAGffswcYKz8EbeafzAFGMCA6MEZKt",
|
|
"name": "go-libp2p-consensus",
|
|
"version": "0.0.3"
|
|
},
|
|
{
|
|
"author": "whyrusleeping",
|
|
"hash": "QmNh1kGFFdsPu79KNSaL4NUKUPb4Eiz4KHdMtFY6664RDp",
|
|
"name": "go-libp2p",
|
|
"version": "5.0.14"
|
|
},
|
|
{
|
|
"author": "hsanjuan",
|
|
"hash": "QmeQA8UUz7MFqhJfEbo7MphMaSBnBcid4ByBECLcZakTtJ",
|
|
"name": "go-libp2p-raft",
|
|
"version": "1.2.2"
|
|
},
|
|
{
|
|
"author": "urfave",
|
|
"hash": "Qmc1AtgBdoUHP8oYSqU81NRYdzohmF45t5XNwVMvhCxsBA",
|
|
"name": "cli",
|
|
"version": "1.19.1"
|
|
},
|
|
{
|
|
"author": "hashicorp",
|
|
"hash": "QmZa48BnsaEMVNf1hT2HYP2ak97fqyTnadXu6xSu2Y8xui",
|
|
"name": "raft-boltdb",
|
|
"version": "2017.10.24"
|
|
},
|
|
{
|
|
"author": "gorilla",
|
|
"hash": "QmVrBjGjskzhW7HRfC56f4mT3nmNBHj2WWnEXr39G7Y6w8",
|
|
"name": "mux",
|
|
"version": "1.3.0"
|
|
},
|
|
{
|
|
"author": "hsanjuan",
|
|
"hash": "QmbwzzwYhmU2Y8818NHZvF8PyLsXCqsgAtpNcQsogmJWg8",
|
|
"name": "go-libp2p-gorpc",
|
|
"version": "1.0.6"
|
|
},
|
|
{
|
|
"author": "libp2p",
|
|
"hash": "QmenK8PgcpM2KYzEKnGx1LyN1QXawswM2F6HktCbWKuC1b",
|
|
"name": "go-libp2p-pnet",
|
|
"version": "2.3.6"
|
|
},
|
|
{
|
|
"author": "hsanjuan",
|
|
"hash": "QmTevRdYUfixypqMWtSKDQ3hqr3QFCbfoBx6gbSxmfWoqT",
|
|
"name": "go4-lock",
|
|
"version": "0.0.1"
|
|
},
|
|
{
|
|
"author": "ZenGround0",
|
|
"hash": "QmXoatUMzVryJXW1iucE9H4BayxAKzHSyRVZPxhWwEuX8y",
|
|
"name": "go-dot",
|
|
"version": "0.0.0"
|
|
},
|
|
{
|
|
"author": "dignifiedquire",
|
|
"hash": "QmcdZD4zsP3PyNDbHkvjkvQx7dLLfbkSrRP8q5yPbDjqhj",
|
|
"name": "go-fs-lock",
|
|
"version": "0.1.1"
|
|
},
|
|
{
|
|
"author": "hsanjuan",
|
|
"hash": "QmYvYkxJrMzijvfE9EXsnBF26phUBpcK3cChSjucH5hXUY",
|
|
"name": "go-libp2p-http",
|
|
"version": "1.0.1"
|
|
},
|
|
{
|
|
"author": "ipfs",
|
|
"hash": "QmRQaEUS4rtBy13MqyGVawe1r5Xm9UWeYo1B4Ewb2hMH8x",
|
|
"name": "go-ipfs-api",
|
|
"version": "1.2.5"
|
|
}
|
|
],
|
|
"gxVersion": "0.11.0",
|
|
"language": "go",
|
|
"license": "MIT",
|
|
"name": "ipfs-cluster",
|
|
"releaseCmd": "git commit -S -a -m \"gx publish $VERSION\"",
|
|
"version": "0.3.5"
|
|
}
|
|
|