Change query used to find list of nodes in the network (#2124)
* Change query used to find list of nodes in the network * include "All" option for host selection
This commit is contained in:
@ -67,12 +67,12 @@ else:
|
|||||||
{'allValue': None,
|
{'allValue': None,
|
||||||
'datasource': 'Solana Metrics (read-only)',
|
'datasource': 'Solana Metrics (read-only)',
|
||||||
'hide': 0,
|
'hide': 0,
|
||||||
'includeAll': False,
|
'includeAll': True,
|
||||||
'label': 'HostID',
|
'label': 'HostID',
|
||||||
'multi': False,
|
'multi': False,
|
||||||
'name': 'hostid',
|
'name': 'hostid',
|
||||||
'options': [],
|
'options': [],
|
||||||
'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"counter-bank-process_transactions-txs\" ',
|
'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"counter-fullnode-new\" ',
|
||||||
'refresh': 2,
|
'refresh': 2,
|
||||||
'regex': '',
|
'regex': '',
|
||||||
'sort': 1,
|
'sort': 1,
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
use crate::bank::Bank;
|
use crate::bank::Bank;
|
||||||
use crate::broadcast_service::BroadcastService;
|
use crate::broadcast_service::BroadcastService;
|
||||||
use crate::cluster_info::{ClusterInfo, Node, NodeInfo};
|
use crate::cluster_info::{ClusterInfo, Node, NodeInfo};
|
||||||
|
use crate::counter::Counter;
|
||||||
use crate::db_ledger::{write_entries_to_ledger, DbLedger};
|
use crate::db_ledger::{write_entries_to_ledger, DbLedger};
|
||||||
use crate::gossip_service::GossipService;
|
use crate::gossip_service::GossipService;
|
||||||
use crate::leader_scheduler::LeaderScheduler;
|
use crate::leader_scheduler::LeaderScheduler;
|
||||||
@ -14,12 +15,13 @@ use crate::tpu::{Tpu, TpuReturnType};
|
|||||||
use crate::tpu_forwarder::TpuForwarder;
|
use crate::tpu_forwarder::TpuForwarder;
|
||||||
use crate::tvu::{Tvu, TvuReturnType};
|
use crate::tvu::{Tvu, TvuReturnType};
|
||||||
use crate::window::{new_window, SharedWindow};
|
use crate::window::{new_window, SharedWindow};
|
||||||
|
use log::Level;
|
||||||
use solana_sdk::hash::Hash;
|
use solana_sdk::hash::Hash;
|
||||||
use solana_sdk::signature::{Keypair, KeypairUtil};
|
use solana_sdk::signature::{Keypair, KeypairUtil};
|
||||||
use solana_sdk::timing::timestamp;
|
use solana_sdk::timing::timestamp;
|
||||||
use std::net::UdpSocket;
|
use std::net::UdpSocket;
|
||||||
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
|
||||||
use std::sync::{Arc, RwLock};
|
use std::sync::{Arc, RwLock};
|
||||||
use std::thread::Result;
|
use std::thread::Result;
|
||||||
use untrusted::Input;
|
use untrusted::Input;
|
||||||
@ -343,6 +345,8 @@ impl Fullnode {
|
|||||||
Some(NodeRole::Leader(leader_state))
|
Some(NodeRole::Leader(leader_state))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inc_new_counter_info!("fullnode-new", 1);
|
||||||
|
|
||||||
Fullnode {
|
Fullnode {
|
||||||
keypair,
|
keypair,
|
||||||
vote_account_keypair,
|
vote_account_keypair,
|
||||||
|
Reference in New Issue
Block a user