Commit Graph
108 Commits
Author SHA1 Message Date
Ruben S. Montero 9af58855e3 M#-: Fix compilation warnings
(cherry picked from commit 65cedcc211)
2020-05-05 12:40:05 +02:00
Christian González 7b6b054b1a B #4636: Fix Federation replication bug (#4638) 2020-05-04 14:38:50 +02:00
Vlastimil Holer f3c50a5d89 M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Pavel Czerný 8d12e78fbe F #4032: Speed up C++ build (#4035)
In Nebula.h use forward declarations instead of #include
2019-12-10 11:45:14 +01:00
Ruben S. MonteroandChristian González 6143dd95ce F #3380: New Hook system. Drivers, oned and command line tool
Co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-09-09 14:47:42 +02:00
Pavel Czerný e31deafff7 F #3586: Uniform thread-safe random generator 2019-08-16 11:11:31 +02:00
Ruben S. Montero 865c966fd7 M #-: Fix variable sizes 2019-07-03 16:08:49 +02:00
Ruben S. Montero fa88368c46 B #3021:Fix bugs updating the heartbeat timeout update 2019-07-03 13:34:57 +02:00
Ruben S. Montero b75c5fc02a M #-: Fix typo in variable name
(cherry picked from commit 7f0863ea49)
2019-06-28 18:22:35 +02:00
Ruben S. Montero bc14442af0 B #3021: Better randomize when restarting an election process 2019-06-25 10:57:31 +02:00
Ruben S. Montero 6bcace061b M #-: Move fed index check. 2019-06-10 11:41:25 +02:00
Ruben S. Montero e6c785b954 Feature #2722: Minor changes and data type fixes 2019-04-15 17:07:30 +02:00
Ruben S. MonteroandChristian González c64d63f3d5 F #2722: Increase the size of the replication and federation log indexes
co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-04-08 17:43:12 +02:00
Ruben S. Montero b59ee42750 Revert "F #2722: Increase the size of the replication and federation log indexes"
This reverts commit 1da93f3732.
2019-04-08 17:09:56 +02:00
Ruben S. MonteroandChristian González 1da93f3732 F #2722: Increase the size of the replication and federation log indexes
co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-04-08 14:38:02 +02:00
Ruben S. Montero 5dd2353507 development: Removed log line in replica thread 2019-02-20 20:45:40 +01:00
Ruben S. MonteroandChristian González 8fbd126ca2 development: Fix race condition between the expiration of the replica timeout and the pending_requests state change. api server cache mode
Co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-02-19 12:40:07 +01:00
Ruben S. Montero 38edd7347c development: Fix compilation
(cherry picked from commit 0b7401a1db1487f768673754451439a956c0e1da)
2019-02-18 16:04:23 +01:00
Ruben S. Montero 8693ac5cfe development: Fix race condition between the expiration of the replica timeout and the pending_requests state change. 2019-02-18 15:48:19 +01:00
Ruben S. MonteroandChristian González 0de6fa7493 development: Add extra debug information for HA and federated log purge
co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-02-15 00:15:57 +01:00
Vlastimil Holer 441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +01:00
Ruben S. Montero bf3291306a Improve checks to prevent unneeded replication triggers
(cherry picked from commit 50a588c38b)
(cherry picked from commit d21a0c9582)
(cherry picked from commit 64e7c5bbd0)
(cherry picked from commit 48881ae10a)
(cherry picked from commit dd07086791)
2018-09-08 13:38:01 +02:00
Ruben S. Montero 32dd228376 Compute number of replicas needed to commit a log record
(cherry picked from commit 877df62c4f)
2018-08-31 00:47:42 +02:00
Ruben S. Montero da5501e23d Remove replication requests for 1 server clusters
(cherry picked from commit 7c916ebe60)
2018-08-24 17:58:20 +02:00
Ruben S. Montero 29602df675 Added debug info
(cherry picked from commit 39fd0ddd10)
2018-08-22 12:26:13 +02:00
Ruben S. Montero 914368d300 Better trigger of replication requests. Synchronize DB writers and Raft
main thread.

On followers, replace exisiting records when matching index and term to
cope with API reset because of timeouts.

(cherry picked from commit 7719e7c17b)
(cherry picked from commit 5490872507)
(cherry picked from commit 2f281b51f3)
(cherry picked from commit ccdbb99e9d)
2018-08-05 19:03:01 +02:00
Ruben S. Montero 8eadc0f88f F #2143: renamed to reset vs sync 2018-06-26 13:14:04 +02:00
Ruben S. Montero d4ab90289f B #2144: Better purge for federated records
(cherry picked from commit 6ba048c9d3)
2018-06-26 10:57:04 +02:00
Ruben S. Montero 360cef02f0 Fix random election timeout rounds (srand(0) == srand(1) for glibc) 2018-06-26 10:57:04 +02:00
Ruben S. Montero 4733813280 F #2147: Reset election timeout on turning into follower
(cherry picked from commit 49ae026876)
2018-06-26 10:57:03 +02:00
juanmont 16682a205e F #2143: Filling function reset_index 2018-06-21 14:53:46 +02:00
juanmont f3f64f493e F #2143: Added new call to reset index 2018-06-20 17:58:19 +02:00
Ruben S. Montero 9b96c8fd3c F #1927: Extend Sql interface, free results of MySQL query.
(cherry picked from commit f502d17923a12f1f4df59e5ae100802ab6d5ba9c)
2018-04-23 12:54:27 +02:00
juanmont dfa535441e F #1927:
- Added the possibility to know how many rows have been affected
 - Added new Attribute to specify the limit for the purge

(cherry picked from commit b5700eb6d1)
2018-04-23 12:54:26 +02:00
Ruben S. Montero 37222d65dc F #1792: Greatly improve concurrency by: Remove big lock on pool control class. Increase number of MySQL connections (new configuration variable). Make all parser reentrants. This commit also simplifies the pool references.
(cherry picked from commit a3d3ceb771034794c4fb453dcd9aaff64c53baed)
2018-03-17 23:35:21 +01:00
Ruben S. Montero 97f957460f B #1555: Replicate log on leadership changes
(cherry picked from commit 5c97553267)
2018-01-08 00:35:40 +01:00
Vlastimil Holer a4c0447ccf Bump year to 2018 (#1623) 2018-01-02 18:27:37 +01:00
Ruben S. Montero 7013aa927a Changed error messages, get rid of unneed read_auths 2017-10-27 13:19:20 +02:00
juanmont b443aa5547 B #5496: Changed getpwuid function and xmlrpc_secret to a local variable 2017-10-27 13:19:20 +02:00
Ruben S. Montero a21b39f9f7 B #5432: Execute timer action for SOLO oned's, this clean federation log
in non-HA configurations

(cherry picked from commit 577d976d14)
2017-10-13 17:26:52 +02:00
Ruben S. Montero 23825b2c82 B: Wrong term stored in DB after stopping oned in leader mode
(cherry picked from commit 31830b62a7)
2017-10-11 15:03:23 +02:00
Ruben S. Montero 15ae0f474f Stop ReplicaThreads on exit
(cherry picked from commit 778f5b5e47d44ab51a5c10ba78b4b4c2f05b9cd7)
2017-10-06 23:27:36 +02:00
Ruben S. Montero 7219d3cd16 B : Prevent race-condition when leader-follower transitions 2017-09-15 01:39:12 +02:00
Ruben S. Montero a6addb314e Raft stability patch:
* Do not reset vote on followers upon successful election
  * Cache one_auth secret to fix mt issue and improve heartbeat
  performance
  * Remove debug message when a record is not loaded
  * Remove default timeout for curl library
2017-08-03 12:28:48 +02:00
Ruben S. Montero 98e5866080 B: do not reset votedFor upon election 2017-07-13 12:51:31 +02:00
hydro-b e066817bbb When zone is not specified we should prepend with "the". If the name of the zone would be given "the" would not be needed. (#393)
THANKS :)
2017-07-12 17:00:13 +02:00
Ruben S. Montero b315b71009 F #4809: Fix race condition updating next index in federated log. 2017-07-12 16:04:19 +02:00
Ruben S. Montero 3fdf93d892 Fix log message 2017-07-12 13:46:19 +02:00
Ruben S. Montero fa9e5d947b Added debug information to LogDB operations 2017-07-12 13:02:40 +02:00
Ruben S. Montero 6f4a45c8c7 Revert "F #4809: Log information to debug federated zones with HA clusters. THIS"
This reverts commit fab2a07f74.
2017-06-30 16:08:11 +02:00