Skip to content

Commit 70e73d2

Browse files
Merge pull request #1867 from oracle-devrel/witold-swierzy-patch-6
Update README.md
2 parents d08ecd3 + 882c151 commit 70e73d2

File tree

1 file changed

+14
-1
lines changed
  • data-platform/autonomous-database/autonomous-json/MongoDBReplay

1 file changed

+14
-1
lines changed

data-platform/autonomous-database/autonomous-json/MongoDBReplay/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,21 @@ See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/
2525
## Usage
2626
1. Generic requirements
2727
- MR_CONFIG_DIR variable has to be set to a directory, where configuration and log files are/will be stored
28+
- JDK 21 (it can be Oracle or OpenJDK)
29+
- Oracle JDK can be downloaded from the following link: https://www.oracle.com/java/technologies/downloads/#java21
30+
- OpenJDK is usually available in a Linux packates repository, but also can be downloaded and installed independly from the following link: https://openjdk.org/
2831

2932
1.MDBExtractor
3033
requirements:
3134
- Source MongoDB instance up and running
3235
- Profiling at the MongoDB instance
3336
- to extract data from traditional Mongod log file, there is need to enable logging so called slow operations at the Mongod instance level. It can be done by executing the following command:
3437

35-
db.setProfilingLevel(0, -1)
38+
db.setProfilingLevel(0, -1)
39+
- to extract data from db.system.profile collection or its dump there is need to enable traditional profiling, by executing the following command:
40+
41+
db.setProfilingLevel(2)
42+
3643
- The following configuration file $MR_CONFIG_DIR/MDBExtractConfig.json needs to be existing with the following parameters
3744

3845
OUTPUT_DIR : optional; points to directory where output files will be created;
@@ -41,6 +48,12 @@ See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/
4148
INPUT_FILE : optional; points to an input log file generated by a MongoDB Instance with profiling enabled
4249
if this parameter is not set, then MDBExtractor will read data from standard input
4350

51+
INPUT_FILE_FORMAT : optional; provides information about from which file the data will be read. It accepts two values
52+
MONGO_LOG : in that case Extractor will be reading data from traditional Mongod log file. Profiling needs to be set to (0,-1)
53+
MONGO_PROFILE : in that case Extractor will be reading data from dump of db.system.profile collection. Profiling needs to be set to (2)
54+
55+
INPUT_CONNECT_STRING : optional; if set then it points to a MongoDB instance, from which input data will be read directly. Profiling needs to be set to (2). When this parameter is set, then INPUT_FILE and INPUT_FILE_FORMAT cannot be set.
56+
4457
COMMANDS_LOGGING : optional; default value "true", if set to "true" then every command found by the extractor will be
4558
additional logged with console.log(...). Useful, when output will be processed by mongosh tool, which
4659
has limited capabilities related to error reporting. When set to "false" only commands will be reported.

0 commit comments

Comments
 (0)