-
Notifications
You must be signed in to change notification settings - Fork 833
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging staging/replication-2.0 into devel.
- Loading branch information
Showing
104 changed files
with
2,504 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...mentation/Metrics/arangodb_replication2_replicated_log_number_accepted_entries_total.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: arangodb_replication2_replicated_log_number_accepted_entries_total | ||
introducedIn: "3.10.0" | ||
help: | | ||
Number of accepted (not yet committed) log entries. | ||
unit: number | ||
type: counter | ||
category: Replication | ||
complexity: simple | ||
exposedBy: | ||
- dbserver | ||
description: | | ||
The entries have been inserted into the log and are being replicated but a quorum has not yet been reached. |
12 changes: 12 additions & 0 deletions
12
...entation/Metrics/arangodb_replication2_replicated_log_number_committed_entries_total.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: arangodb_replication2_replicated_log_number_committed_entries_total | ||
introducedIn: "3.10.0" | ||
help: | | ||
Number of committed log entries. | ||
unit: number | ||
type: counter | ||
category: Replication | ||
complexity: simple | ||
exposedBy: | ||
- dbserver | ||
description: | | ||
Number of committed log entries. |
13 changes: 13 additions & 0 deletions
13
...entation/Metrics/arangodb_replication2_replicated_log_number_compacted_entries_total.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: arangodb_replication2_replicated_log_number_compacted_entries_total | ||
introducedIn: "3.10.0" | ||
help: | | ||
Number of compacted log entries. | ||
unit: number | ||
type: counter | ||
category: Replication | ||
complexity: simple | ||
exposedBy: | ||
- dbserver | ||
description: | | ||
Number of compacted log entries. If log entries have been replicated to every participant and applied | ||
durably, they can be compacted, i.e. deleted. |
13 changes: 13 additions & 0 deletions
13
Documentation/Metrics/arangodb_replication2_replicated_log_number_meta_entries_total.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: arangodb_replication2_replicated_log_number_meta_entries_total | ||
introducedIn: "3.10.0" | ||
help: | | ||
Number of meta log entries. | ||
unit: number | ||
type: counter | ||
category: Replication | ||
complexity: simple | ||
exposedBy: | ||
- dbserver | ||
description: | | ||
Number of meta log entries. A meta log entry is used to create artificial write barriers, for example during a | ||
configuration change or move shard operation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
/// DISCLAIMER | ||
/// | ||
/// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany | ||
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany | ||
/// | ||
/// Licensed under the Apache License, Version 2.0 (the "License"); | ||
/// you may not use this file except in compliance with the License. | ||
/// You may obtain a copy of the License at | ||
/// | ||
/// http://www.apache.org/licenses/LICENSE-2.0 | ||
/// | ||
/// Unless required by applicable law or agreed to in writing, software | ||
/// distributed under the License is distributed on an "AS IS" BASIS, | ||
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
/// See the License for the specific language governing permissions and | ||
/// limitations under the License. | ||
/// | ||
/// Copyright holder is ArangoDB GmbH, Cologne, Germany | ||
/// | ||
/// @author Manuel Pöter | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
#include "Agency/Helpers.h" | ||
|
||
#include "Basics/StaticStrings.h" | ||
#include "Replication2/Version.h" | ||
|
||
namespace arangodb::consensus { | ||
|
||
bool isReplicationTwoDB(Node::Children const& databases, | ||
std::string const& dbName) { | ||
auto it = databases.find(dbName); | ||
if (it == databases.end()) { | ||
// this should actually never happen, but if it does we simply claim that | ||
// this is an old replication 1 DB. | ||
return false; | ||
} | ||
|
||
if (auto v = it->second->hasAsString(StaticStrings::ReplicationVersion); v) { | ||
auto res = replication::parseVersion(v.value()); | ||
return res.ok() && res.get() == replication::Version::TWO; | ||
} | ||
return false; | ||
} | ||
|
||
} // namespace arangodb::consensus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
/// DISCLAIMER | ||
/// | ||
/// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany | ||
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany | ||
/// | ||
/// Licensed under the Apache License, Version 2.0 (the "License"); | ||
/// you may not use this file except in compliance with the License. | ||
/// You may obtain a copy of the License at | ||
/// | ||
/// http://www.apache.org/licenses/LICENSE-2.0 | ||
/// | ||
/// Unless required by applicable law or agreed to in writing, software | ||
/// distributed under the License is distributed on an "AS IS" BASIS, | ||
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
/// See the License for the specific language governing permissions and | ||
/// limitations under the License. | ||
/// | ||
/// Copyright holder is ArangoDB GmbH, Cologne, Germany | ||
/// | ||
/// @author Manuel Pöter | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
#pragma once | ||
|
||
#include "Agency/Node.h" | ||
|
||
namespace arangodb::consensus { | ||
|
||
bool isReplicationTwoDB(Node::Children const& databases, | ||
std::string const& dbName); | ||
|
||
} // namespace arangodb::consensus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.