0d7fad169a
Allow longer working directory
2017-06-14 16:38:53 +02:00
a40c908559
Add lock to isDead detected. Make sure we don't deadlock
2017-05-22 21:50:59 +02:00
a7355cc96c
Revert "Lock m_mtxPinginfo when checking if a host is dead"
...
This reverts commit 04348a95e0
.
2017-05-22 21:41:38 +02:00
04348a95e0
Lock m_mtxPinginfo when checking if a host is dead
2017-05-22 17:50:19 +02:00
d49d168f68
Moved hosts.conf CRC calculation into Hostdb::init()
2017-05-10 16:16:20 +02:00
6b8c5a3665
Made reentrant version of iptoa()
...
And used it in Hostdb.cpp
2017-05-10 16:13:57 +02:00
a16c86b07a
fix typo in log message
2017-05-10 16:11:15 +02:00
678591625e
Log more info on hosts.conf CRC calculation
2017-05-10 15:28:41 +02:00
946bbb868d
Log hosts.conf CRC upon startup
2017-05-10 15:00:45 +02:00
c2f5f1c37e
Dropped unused Hostdb.*: g_stuff used only by PingServer
2017-05-08 16:58:06 +02:00
c27fa0f337
Removed this==&g_hostdb checks in Hostdb.cpp
...
We only have one instance of Hostdb
2017-05-07 18:20:55 +02:00
3415d008ba
Removed configuration associated with PingServer
2017-05-07 14:18:35 +02:00
1c117d3aa1
Dropped PingInfo + PingServer entierely.
...
The remaining functionality of the pingserver was to ping normalt and "shotgun" IPs to determine the fastests and working network path. This is better done at L2/L3 or OS level - not in the application.
The email-sending functionality was dropped too. We recommend using 3rd-party tools for monitoring and statistics-collection/triggering.
2017-05-05 15:00:31 +02:00
cfd1b838b2
Removed write-only variable Host::m_gotPingReply
2017-05-05 14:18:40 +02:00
5790b7f7db
Renamed HostRuntimeInformation::m_flagsValid to m_valid
2017-05-05 14:18:40 +02:00
edb2423c5a
moved PingInfo::m_repairMode and logic form PingServer to Hostdb+Repair.cpp
2017-05-05 14:05:01 +02:00
cce5deebda
In a single-instance setup hostsconfCRC is always consistent (even more bugfixed now)
2017-05-05 12:14:22 +02:00
f65b3a8529
In a single-instance setup hostsconfCRC is always consistent
2017-05-05 12:12:56 +02:00
7e7db15f5d
Moved hosts.conf CRC info and check from PingServer to Hostdb+vagus
2017-05-04 17:58:19 +02:00
e6d7f1a401
Moved PingINfo::m_totalDocsIndexed to Host::RuntimeHostInformation
2017-05-04 16:18:49 +02:00
63ed7b6351
Moved some fields originating from PingInfo from Host to HostRuntimeInformation
2017-05-04 16:18:49 +02:00
4d7aeb221a
Moved PingInfo::m_gbVersionStr to Host::
2017-05-04 15:01:55 +02:00
aab478e6d6
Moved PingInfo::m_dailyMergeCollnum to Host::
2017-05-04 14:53:23 +02:00
61dc9e4573
Keep our own Host::m_flags up-to-date
2017-05-04 14:37:19 +02:00
5a78eac74f
Moved PingInfo::m_flags to Host
...
Also moved responsibility of updating it from PingServer to Vagus client
2017-05-04 14:01:10 +02:00
8f19577d8f
Use Vagus for detecting dead instances
...
Vagus is now required for multi-instance installations.
2017-05-04 12:06:19 +02:00
4275ee54e2
Dropped Hostdb 'net name' - it was always 'default'
2017-05-02 13:01:01 +02:00
a829241d1a
Hostdb: more constness
2017-05-02 13:01:01 +02:00
b7fef6c9b5
Moved dead host counting logic from PingServer to Hostdb
2017-05-02 12:41:03 +02:00
ec7d909a49
Removed Host::m_firstOOMTime
2017-05-02 12:03:47 +02:00
9143000249
Removed Host::m_loadAvg
2017-05-02 12:02:58 +02:00
8f992ee6cd
getLocalIps(): skip non-IPv4 correctly
2017-05-01 13:43:54 +02:00
75d5a0b80e
Removed PingInfo::m_currentSpiders
2017-05-01 12:32:26 +02:00
08df3918ef
Removed PingInfo::m_numCorruptDiskReads
2017-05-01 12:26:48 +02:00
b74c39cb04
Removed PingInfo::m_tcpSocketsInUse
2017-05-01 12:22:29 +02:00
f3ef115bb4
Removed PingInfo::m_udpSlotsInUseIncoming
2017-05-01 12:19:30 +02:00
1dc77e8ec3
Removed PingInfo::m_socketsClosedFromHittingLimit
...
Also removed Stats::m_closedSockets, and moved dumping to Statistics.cpp
2017-05-01 12:08:24 +02:00
8cd7d78998
Removed PingInfo::m_percentMemUsed and m_numOutOfMems
...
Written to statistics file instead.
2017-05-01 11:33:13 +02:00
018ef9df3a
Removed PingInfo::m_recoveryLevel
2017-04-28 16:40:41 +02:00
1d223c0ae5
Removed fields from PingInfo: m_loadAvg, m_cpuUsage, m_diskUsage
...
Better monitoring with external tools
2017-04-28 16:32:07 +02:00
47ca7fa7ba
Removed unused PingIfNo::m_localHostTimeMS
...
Field retained for binary compatibility
2017-04-28 15:42:18 +02:00
53e89c2d15
Revert watchdog functionality.
...
Reverting commit:
00d91dc2e3
a57aa86bb6
The watchdog functionality worked fine but added a non-neglible background load on idle setups and scaled just as poorly as the pinginfo. We need a better mechanism.
2017-04-18 14:10:45 +02:00
a1e990508a
Use isInitialized function instead of checking m_ks
2017-04-07 15:55:02 +02:00
a57aa86bb6
Send watchdog messge to hosts we haven't interacted with recently.
...
Distinquish between hotss we normalyl talk to and hosts we rarely talk to. Use agressive conditional watchdog messages, and detect unresponsive hosts based on that.
2017-04-06 17:18:56 +02:00
122f99f680
Fix pinginfo resends and etryagains
...
Moved fields m_etryagains and m_totalResends from PingInfo to Host. Otherwise the counters were overwritten each time we got a response from that host making statistics wrong.
2017-04-06 12:10:42 +02:00
2af07f2786
Keep track request and response times per host
...
Preparation for better dead host detection.
2017-04-04 14:28:38 +02:00
52683da656
Removed Host::m_hostdb (was always &g_hostdb)
2017-04-03 11:56:19 +02:00
94674449bd
Remove slowDiskReads statistics
2017-03-28 11:11:00 +02:00
4a66432ed0
Simplified Hostdb::getBestHosts2IP()
...
Changed (incomplete) top-byte-checks to simple call to ip_distance()
2017-03-21 16:25:02 +01:00
e6b62fa0ce
More const in Hostdb.*
2017-03-21 16:15:04 +01:00