SERVER-44763 Remove gotools from build and packaging
This commit is contained in:
parent
c9dbf657e1
commit
3c0c136ecf
9
README
9
README
@ -10,15 +10,6 @@ COMPONENTS
|
||||
|
||||
UTILITIES
|
||||
|
||||
mongodump - Create a binary dump of the contents of a database.
|
||||
mongorestore - Restore data from the output created by mongodump.
|
||||
mongoexport - Export the contents of a collection to JSON or CSV.
|
||||
mongoimport - Import data from JSON, CSV or TSV.
|
||||
mongofiles - Put, get and delete files from GridFS.
|
||||
mongostat - Show the status of a running mongod/mongos.
|
||||
bsondump - Convert BSON files into human-readable formats.
|
||||
mongoreplay - Traffic capture and replay tool.
|
||||
mongotop - Track time spent reading and writing data.
|
||||
install_compass - Installs MongoDB Compass for your platform.
|
||||
|
||||
BUILDING
|
||||
|
||||
@ -101,42 +101,6 @@ released binary artifacts.
|
||||
| testscenarios |
|
||||
| testtools |
|
||||
|
||||
## Libraries Imported by Tools
|
||||
|
||||
The following Go libraries are vendored into the MongoDB tools. Their
|
||||
license notices are included in the `THIRD-PARTY-NOTICES.gotools` file.
|
||||
|
||||
| Name |
|
||||
| :------------------------------------------------------------------ |
|
||||
| Go (language runtime and JSON/CSV codecs) |
|
||||
| [assertions](https://github.com/smartystreets/assertions) |
|
||||
| [crypto](https://golang.org/x/crypto) |
|
||||
| [escaper](https://github.com/10gen/escaper) |
|
||||
| [gls](https://github.com/jtolds/gls) |
|
||||
| [go-cache](https://github.com/patrickmn/go-cache) |
|
||||
| [go-flags](https://github.com/jessevdk/go-flags) |
|
||||
| [go-runewidth](https://github.com/mattn/go-runewidth) |
|
||||
| [goconvey](https://github.com/smartystreets/goconvey) |
|
||||
| [gopacket](https://github.com/google/gopacket) |
|
||||
| [gopass](https://github.com/howeyc/gopass) |
|
||||
| [gopherjs](https://github.com/gopherjs/gopherjs) |
|
||||
| [llmgo](https://github.com/10gen/llmgo) |
|
||||
| [mgo](https://github.com/10gen/mgo) |
|
||||
| [mongo-go-driver](https://github.com/mongodb/mongo-go-driver) |
|
||||
| [mongo-lint](https://github.com/3rf/mongo-lint) |
|
||||
| [mongo-tools-common](https://github.com/mongodb/mongo-tools-common) |
|
||||
| [openssl](https://github.com/10gen/openssl) |
|
||||
| [oglematchers](https://github.com/jacobsa/oglematchers) |
|
||||
| [scram](https://github.com/xdg/scram) |
|
||||
| [snappy](https://github.com/golang/snappy) |
|
||||
| [spacelog](https://github.com/spacemonkeygo/spacelog) |
|
||||
| [stack](https://github.com/go-stack/stack) |
|
||||
| [stringprep](https://github.com/xdg/stringprep) |
|
||||
| [sync](https://golang.org/x/sync) |
|
||||
| [termbox-go](https://github.com/nsf/termbox-go) |
|
||||
| [text](https://golang.org/x/text) |
|
||||
| [tomb](https://gopkg.in/tomb.v2) |
|
||||
|
||||
## Dynamically Linked Libraries
|
||||
|
||||
Sometimes MongoDB needs to load libraries provided and managed by the
|
||||
|
||||
10
SConstruct
10
SConstruct
@ -377,16 +377,6 @@ add_option('use-system-all',
|
||||
nargs=0,
|
||||
)
|
||||
|
||||
add_option('use-new-tools',
|
||||
help='put new tools in the tarball',
|
||||
nargs=0,
|
||||
)
|
||||
|
||||
add_option('build-mongoreplay',
|
||||
help='when building with --use-new-tools, build mongoreplay ( requires pcap dev )',
|
||||
nargs=1,
|
||||
)
|
||||
|
||||
add_option('use-cpu-profiler',
|
||||
help='Link against the google-perftools profiler library',
|
||||
nargs=0,
|
||||
|
||||
@ -491,7 +491,7 @@ def unpack_binaries_into(build_os, arch, spec, where):
|
||||
try:
|
||||
sysassert(["tar", "xvzf", rootdir + "/" + tarfile(build_os, arch, spec)])
|
||||
release_dir = glob('mongodb-linux-*')[0]
|
||||
for releasefile in "bin", "LICENSE-Community.txt", "README", "THIRD-PARTY-NOTICES", "THIRD-PARTY-NOTICES.gotools", "MPL-2":
|
||||
for releasefile in "bin", "LICENSE-Community.txt", "README", "THIRD-PARTY-NOTICES", "MPL-2":
|
||||
print("moving file: %s/%s" % (release_dir, releasefile))
|
||||
os.rename("%s/%s" % (release_dir, releasefile), releasefile)
|
||||
os.rmdir(release_dir)
|
||||
@ -524,10 +524,7 @@ def make_package(distro, build_os, arch, spec, srcdir):
|
||||
# packaging infrastructure will move the files to wherever they
|
||||
# need to go.
|
||||
unpack_binaries_into(build_os, arch, spec, sdir)
|
||||
# Remove the mongoreplay binary due to libpcap dynamic
|
||||
# linkage.
|
||||
if os.path.exists(sdir + "bin/mongoreplay"):
|
||||
os.unlink(sdir + "bin/mongoreplay")
|
||||
|
||||
return distro.make_pkg(build_os, arch, spec, srcdir)
|
||||
|
||||
|
||||
|
||||
@ -220,7 +220,7 @@ def unpack_binaries_into(build_os, arch, spec, where):
|
||||
try:
|
||||
packager.sysassert(["tar", "xvzf", rootdir + "/" + tarfile(build_os, arch, spec)])
|
||||
release_dir = glob('mongodb-linux-*')[0]
|
||||
for releasefile in "bin", "snmp", "LICENSE-Enterprise.txt", "README", "THIRD-PARTY-NOTICES", "THIRD-PARTY-NOTICES.gotools", "MPL-2":
|
||||
for releasefile in "bin", "snmp", "LICENSE-Enterprise.txt", "README", "THIRD-PARTY-NOTICES", "MPL-2":
|
||||
os.rename("%s/%s" % (release_dir, releasefile), releasefile)
|
||||
os.rmdir(release_dir)
|
||||
except Exception:
|
||||
@ -253,10 +253,7 @@ def make_package(distro, build_os, arch, spec, srcdir):
|
||||
# packaging infrastructure will move the files to wherever they
|
||||
# need to go.
|
||||
unpack_binaries_into(build_os, arch, spec, sdir)
|
||||
# Remove the mongoreplay binary due to libpcap dynamic
|
||||
# linkage.
|
||||
if os.path.exists(sdir + "bin/mongoreplay"):
|
||||
os.unlink(sdir + "bin/mongoreplay")
|
||||
|
||||
return distro.make_pkg(build_os, arch, spec, srcdir)
|
||||
|
||||
|
||||
|
||||
200
debian/bsondump.1
vendored
200
debian/bsondump.1
vendored
@ -1,200 +0,0 @@
|
||||
.\" Man page generated from reStructuredText.
|
||||
.
|
||||
.TH "BSONDUMP" "1" "Aug 16, 2019" "4.2" "mongodb-manual"
|
||||
.SH NAME
|
||||
bsondump \- MongoDB BSON Utility
|
||||
.
|
||||
.nr rst2man-indent-level 0
|
||||
.
|
||||
.de1 rstReportMargin
|
||||
\\$1 \\n[an-margin]
|
||||
level \\n[rst2man-indent-level]
|
||||
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
-
|
||||
\\n[rst2man-indent0]
|
||||
\\n[rst2man-indent1]
|
||||
\\n[rst2man-indent2]
|
||||
..
|
||||
.de1 INDENT
|
||||
.\" .rstReportMargin pre:
|
||||
. RS \\$1
|
||||
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
||||
. nr rst2man-indent-level +1
|
||||
.\" .rstReportMargin post:
|
||||
..
|
||||
.de UNINDENT
|
||||
. RE
|
||||
.\" indent \\n[an-margin]
|
||||
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
.nr rst2man-indent-level -1
|
||||
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
||||
..
|
||||
.SS On this page
|
||||
.INDENT 0.0
|
||||
.IP \(bu 2
|
||||
\fI\%Synopsis\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Options\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Examples\fP
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.IP "macOS Sierra and Go 1.6 Incompatibility"
|
||||
.sp
|
||||
Users running on macOS Sierra require the 3.2.10 or newer version
|
||||
of \fI\%bsondump\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH SYNOPSIS
|
||||
.sp
|
||||
The \fI\%bsondump\fP converts BSON files into human\-readable
|
||||
formats, including JSON\&. For example, \fI\%bsondump\fP is useful
|
||||
for reading the output files generated by \fBmongodump\fP\&.
|
||||
.sp
|
||||
Run \fI\%bsondump\fP from the system command line, not the \fBmongo\fP shell.
|
||||
.sp
|
||||
\fBIMPORTANT:\fP
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
\fI\%bsondump\fP is a diagnostic tool for inspecting
|
||||
BSON files, not a tool for data ingestion or other application use.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
Starting in version 4.2, \fI\%bsondump\fP uses Extended
|
||||
JSON v2.0 (Canonical mode)
|
||||
to format its data.
|
||||
.SH OPTIONS
|
||||
.sp
|
||||
Changed in version 3.0.0: \fI\%bsondump\fP removed the \fB\-\-filter\fP, \fB\-\-dbpath\fP and the
|
||||
\fB\-\-noobjcheck\fP options.
|
||||
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B bsondump
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-help
|
||||
Returns information on the options and use of \fBbsondump\fP\&.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-verbose, \-v
|
||||
Increases the amount of internal reporting returned on standard output
|
||||
or in log files. Increase the verbosity with the \fB\-v\fP form by
|
||||
including the option multiple times, (e.g. \fB\-vvvvv\fP\&.)
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-quiet
|
||||
Runs \fBbsondump\fP in a quiet mode that attempts to limit the amount
|
||||
of output.
|
||||
.sp
|
||||
This option suppresses:
|
||||
.INDENT 7.0
|
||||
.IP \(bu 2
|
||||
output from database commands
|
||||
.IP \(bu 2
|
||||
replication activity
|
||||
.IP \(bu 2
|
||||
connection accepted events
|
||||
.IP \(bu 2
|
||||
connection closed events
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-version
|
||||
Returns the \fBbsondump\fP release number.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-objcheck
|
||||
Validates each BSON object before outputting it in JSON
|
||||
format. By default, \fBbsondump\fP enables \fI\%\-\-objcheck\fP\&.
|
||||
For objects with a high degree of sub\-document nesting,
|
||||
\fI\%\-\-objcheck\fP can have a small impact on performance.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-type <=json|=debug>
|
||||
Changes the operation of \fBbsondump\fP from outputting
|
||||
"JSON" (the default) to a debugging format.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-pretty
|
||||
New in version 3.0.0.
|
||||
|
||||
.sp
|
||||
Outputs documents in a pretty\-printed format JSON.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-bsonFile
|
||||
New in version 3.4.
|
||||
|
||||
.sp
|
||||
Specifies a path to a BSON file to dump to JSON. \fI\%\-\-bsonFile\fP is
|
||||
an alternative to the positional \fI\%<bsonFilename>\fP option.
|
||||
.sp
|
||||
By default, \fBbsondump\fP reads from standard input.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B <bsonFilename>
|
||||
The final argument to \fBbsondump\fP is a document containing
|
||||
BSON\&. This data is typically generated by
|
||||
\fBbsondump\fP or by MongoDB in a rollback operation.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-outFile
|
||||
New in version 3.4.
|
||||
|
||||
.sp
|
||||
Specifies the path of the file to which \fBbsondump\fP should write
|
||||
its output JSON data.
|
||||
.sp
|
||||
By default, \fBbsondump\fP writes to standard output.
|
||||
.UNINDENT
|
||||
.SH EXAMPLES
|
||||
.sp
|
||||
Changed in version 3.4.
|
||||
|
||||
.sp
|
||||
By default, \fI\%bsondump\fP outputs data to standard output. To
|
||||
create corresponding JSON files, you can use the
|
||||
\fI\%\-\-outFile\fP option:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
bsondump \-\-outFile collection.json collection.bson
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
Use the following command (at the system shell) to produce debugging
|
||||
output for a BSON file:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
bsondump \-\-type=debug collection.bson
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH AUTHOR
|
||||
MongoDB Documentation Project
|
||||
.SH COPYRIGHT
|
||||
2008-2019
|
||||
.\" Generated by docutils manpage writer.
|
||||
.
|
||||
5
debian/lintian-overrides
vendored
5
debian/lintian-overrides
vendored
@ -3,9 +3,4 @@
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongo /usr/lib64/xulrunner-1.9.1
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongocryptd /usr/lib64/xulrunner-1.9.1
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongod /usr/lib64/xulrunner-1.9.1
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongodump /usr/lib64/xulrunner-1.9.1
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongoexport /usr/lib64/xulrunner-1.9.1
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongofiles /usr/lib64/xulrunner-1.9.1
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongoimport /usr/lib64/xulrunner-1.9.1
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongorestore /usr/lib64/xulrunner-1.9.1
|
||||
mongodb: binary-or-shlib-defines-rpath ./usr/bin/mongos /usr/lib64/xulrunner-1.9.1
|
||||
|
||||
1
debian/mongodb-enterprise-server.docs
vendored
1
debian/mongodb-enterprise-server.docs
vendored
@ -6,5 +6,4 @@ snmp/MONGODBINC-MIB.txt
|
||||
LICENSE-Enterprise.txt
|
||||
README
|
||||
THIRD-PARTY-NOTICES
|
||||
THIRD-PARTY-NOTICES.gotools
|
||||
MPL-2
|
||||
|
||||
@ -6,5 +6,4 @@ snmp/MONGODBINC-MIB.txt
|
||||
LICENSE-Enterprise.txt
|
||||
README
|
||||
THIRD-PARTY-NOTICES
|
||||
THIRD-PARTY-NOTICES.gotools
|
||||
MPL-2
|
||||
|
||||
7
debian/mongodb-enterprise-unstable.rules
vendored
Normal file → Executable file
7
debian/mongodb-enterprise-unstable.rules
vendored
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
TOOLS=bsondump mongodecrypt mongodump mongoexport mongofiles mongoimport mongoldap mongorestore mongostat mongotop mongokerberos
|
||||
TOOLS=mongodecrypt mongoldap mongokerberos
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
export DH_VERBOSE=1
|
||||
@ -58,11 +58,6 @@ clean:
|
||||
rm -f mongo
|
||||
rm -f mongod
|
||||
rm -f mongocryptd
|
||||
rm -f mongoimportjson
|
||||
rm -f mongoexport
|
||||
rm -f mongorestore
|
||||
rm -f mongodump
|
||||
rm -f mongofiles
|
||||
rm -f install_compass
|
||||
rm -f .sconsign.dblite
|
||||
rm -f libmongoclient.a
|
||||
|
||||
7
debian/mongodb-enterprise.rules
vendored
Normal file → Executable file
7
debian/mongodb-enterprise.rules
vendored
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
TOOLS=bsondump mongodecrypt mongodump mongoexport mongofiles mongoimport mongoldap mongorestore mongostat mongotop mongokerberos
|
||||
TOOLS=mongodecrypt mongoldap mongokerberos
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
export DH_VERBOSE=1
|
||||
@ -56,12 +56,7 @@ clean:
|
||||
rm -f config.log
|
||||
rm -f mongo
|
||||
rm -f mongod
|
||||
rm -f mongoimportjson
|
||||
rm -f mongocryptd
|
||||
rm -f mongoexport
|
||||
rm -f mongorestore
|
||||
rm -f mongodump
|
||||
rm -f mongofiles
|
||||
rm -f install_compass
|
||||
rm -f .sconsign.dblite
|
||||
rm -f libmongoclient.a
|
||||
|
||||
1
debian/mongodb-org-server.docs
vendored
1
debian/mongodb-org-server.docs
vendored
@ -1,5 +1,4 @@
|
||||
LICENSE-Community.txt
|
||||
README
|
||||
THIRD-PARTY-NOTICES
|
||||
THIRD-PARTY-NOTICES.gotools
|
||||
MPL-2
|
||||
|
||||
1
debian/mongodb-org-unstable-server.docs
vendored
1
debian/mongodb-org-unstable-server.docs
vendored
@ -1,5 +1,4 @@
|
||||
LICENSE-Community.txt
|
||||
README
|
||||
THIRD-PARTY-NOTICES
|
||||
THIRD-PARTY-NOTICES.gotools
|
||||
MPL-2
|
||||
|
||||
7
debian/mongodb-org-unstable.rules
vendored
Normal file → Executable file
7
debian/mongodb-org-unstable.rules
vendored
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
TOOLS=bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongostat mongotop
|
||||
TOOLS=
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
export DH_VERBOSE=1
|
||||
@ -53,11 +53,6 @@ clean:
|
||||
rm -f config.log
|
||||
rm -f mongo
|
||||
rm -f mongod
|
||||
rm -f mongoimportjson
|
||||
rm -f mongoexport
|
||||
rm -f mongorestore
|
||||
rm -f mongodump
|
||||
rm -f mongofiles
|
||||
rm -f install_compass
|
||||
rm -f .sconsign.dblite
|
||||
rm -f libmongoclient.a
|
||||
|
||||
7
debian/mongodb-org.rules
vendored
Normal file → Executable file
7
debian/mongodb-org.rules
vendored
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
TOOLS=bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongostat mongotop
|
||||
TOOLS=
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
export DH_VERBOSE=1
|
||||
@ -52,11 +52,6 @@ clean:
|
||||
rm -f config.log
|
||||
rm -f mongo
|
||||
rm -f mongod
|
||||
rm -f mongoimportjson
|
||||
rm -f mongoexport
|
||||
rm -f mongorestore
|
||||
rm -f mongodump
|
||||
rm -f mongofiles
|
||||
rm -f install_compass
|
||||
rm -f .sconsign.dblite
|
||||
rm -f libmongoclient.a
|
||||
|
||||
2
debian/mongodb-parameters.5
vendored
2
debian/mongodb-parameters.5
vendored
@ -1103,7 +1103,7 @@ To detect unindexed queries without \fBnotablescan\fP, consider reading
|
||||
the /tutorial/evaluate\-operation\-performance and
|
||||
/tutorial/optimize\-query\-performance\-with\-indexes\-and\-projections
|
||||
sections and using the \fI\%logLevel\fP parameter,
|
||||
/reference/program/mongostat and profiling\&.
|
||||
the mongostat tool, and profiling\&.
|
||||
.sp
|
||||
Don\(aqt run production \fBmongod\fP instances with
|
||||
\fI\%notablescan\fP because preventing collection scans can potentially
|
||||
|
||||
1356
debian/mongodump.1
vendored
1356
debian/mongodump.1
vendored
File diff suppressed because it is too large
Load Diff
1546
debian/mongoexport.1
vendored
1546
debian/mongoexport.1
vendored
File diff suppressed because it is too large
Load Diff
935
debian/mongofiles.1
vendored
935
debian/mongofiles.1
vendored
@ -1,935 +0,0 @@
|
||||
.\" Man page generated from reStructuredText.
|
||||
.
|
||||
.TH "MONGOFILES" "1" "Aug 16, 2019" "4.2" "mongodb-manual"
|
||||
.SH NAME
|
||||
mongofiles \- MongoDB GridFS Utility
|
||||
.
|
||||
.nr rst2man-indent-level 0
|
||||
.
|
||||
.de1 rstReportMargin
|
||||
\\$1 \\n[an-margin]
|
||||
level \\n[rst2man-indent-level]
|
||||
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
-
|
||||
\\n[rst2man-indent0]
|
||||
\\n[rst2man-indent1]
|
||||
\\n[rst2man-indent2]
|
||||
..
|
||||
.de1 INDENT
|
||||
.\" .rstReportMargin pre:
|
||||
. RS \\$1
|
||||
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
||||
. nr rst2man-indent-level +1
|
||||
.\" .rstReportMargin post:
|
||||
..
|
||||
.de UNINDENT
|
||||
. RE
|
||||
.\" indent \\n[an-margin]
|
||||
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
.nr rst2man-indent-level -1
|
||||
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
||||
..
|
||||
.SS On this page
|
||||
.INDENT 0.0
|
||||
.IP \(bu 2
|
||||
\fI\%Synopsis\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Required Access\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Behavior\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Options\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Commands\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Examples\fP
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.IP "macOS Sierra and Go 1.6 Incompatibility"
|
||||
.sp
|
||||
Users running on macOS Sierra require the 3.2.10 or newer version
|
||||
of mongofiles\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH SYNOPSIS
|
||||
.sp
|
||||
The \fI\%mongofiles\fP utility makes it possible to manipulate files
|
||||
stored in your MongoDB instance in GridFS objects from the
|
||||
command line. It is particularly useful as it provides an interface
|
||||
between objects stored in your file system and GridFS.
|
||||
.sp
|
||||
All \fI\%mongofiles\fP commands have the following form:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles <options> <commands> <filename>
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
The components of the \fI\%mongofiles\fP command are:
|
||||
.INDENT 0.0
|
||||
.IP 1. 3
|
||||
\fI\%Options\fP\&. You may use one or more of
|
||||
these options to control the behavior of \fI\%mongofiles\fP\&.
|
||||
.IP 2. 3
|
||||
\fI\%Commands\fP\&. Use one of these commands to
|
||||
determine the action of \fI\%mongofiles\fP\&.
|
||||
.IP 3. 3
|
||||
A filename which is either: the name of a file on your local\(aqs file
|
||||
system, or a GridFS object.
|
||||
.UNINDENT
|
||||
.sp
|
||||
Run \fI\%mongofiles\fP from the system command line, not the \fBmongo\fP shell.
|
||||
.sp
|
||||
\fBIMPORTANT:\fP
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
For replica sets,
|
||||
\fI\%mongofiles\fP can only read from the set\(aqs
|
||||
primary\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH REQUIRED ACCESS
|
||||
.sp
|
||||
In order to connect to a \fBmongod\fP that enforces authorization
|
||||
with the \fB\-\-auth\fP option, you must use the
|
||||
\fI\%\-\-username\fP and \fI\%\-\-password\fP options. The connecting user must possess, at a
|
||||
minimum:
|
||||
.INDENT 0.0
|
||||
.IP \(bu 2
|
||||
the \fBread\fP role for the accessed database when using the
|
||||
\fBlist\fP, \fBsearch\fP or \fBget\fP commands,
|
||||
.IP \(bu 2
|
||||
the \fBreadWrite\fP role for the accessed database when using
|
||||
the \fBput\fP or \fBdelete\fP commands.
|
||||
.UNINDENT
|
||||
.SH BEHAVIOR
|
||||
.SS FIPS
|
||||
.sp
|
||||
Starting in version 4.2, MongoDB removes the \fB\-\-sslFIPSMode\fP
|
||||
option for mongofiles\&. mongofiles
|
||||
will use FIPS compliant connections to
|
||||
\fBmongod\fP/\fBmongos\fP if the
|
||||
\fBmongod\fP/\fBmongos\fP instances are
|
||||
configured to use FIPS mode\&.
|
||||
.SS Read Preference
|
||||
.sp
|
||||
By default, \fI\%mongofiles\fP uses read preference
|
||||
\fBprimary\fP\&. To override the default, you can specify the
|
||||
read preference in the
|
||||
\fI\%\-\-readPreference\fP command line
|
||||
option or in the \fI\%\-\-uri connection string\fP\&.
|
||||
.sp
|
||||
Starting in version 4.2, if you specify read preference in the URI
|
||||
string and the \fI\%\-\-readPreference\fP, the \fI\%\-\-readPreference\fP value overrides the read preference specified in the
|
||||
URI string.
|
||||
.sp
|
||||
In earlier versions, the two options are incompatible.
|
||||
.SS Write Concern
|
||||
.sp
|
||||
Starting in version 4.2, you can specify both the
|
||||
\fI\%\-\-writeConcern\fP and the
|
||||
\fI\%\-\-uri connection string\fP option. If write
|
||||
concern is specified using both options, the
|
||||
\fI\%\-\-writeConcern\fP value overrides
|
||||
the write concern specified in the URI string.
|
||||
.sp
|
||||
In earlier versions, the two options are incompatible.
|
||||
.SH OPTIONS
|
||||
.sp
|
||||
Changed in version 3.0.0: \fI\%mongofiles\fP removed the \fB\-\-dbpath\fP as well as related
|
||||
\fB\-\-directoryperdb\fP and \fB\-\-journal\fP options. To use
|
||||
\fI\%mongofiles\fP, you must run \fI\%mongofiles\fP against a running
|
||||
\fBmongod\fP or \fBmongos\fP instance as appropriate.
|
||||
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-help
|
||||
Returns information on the options and use of \fBmongofiles\fP\&.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-verbose, \-v
|
||||
Increases the amount of internal reporting returned on standard output
|
||||
or in log files. Increase the verbosity with the \fB\-v\fP form by
|
||||
including the option multiple times, (e.g. \fB\-vvvvv\fP\&.)
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-quiet
|
||||
Runs \fBmongofiles\fP in a quiet mode that attempts to limit the amount
|
||||
of output.
|
||||
.sp
|
||||
This option suppresses:
|
||||
.INDENT 7.0
|
||||
.IP \(bu 2
|
||||
output from database commands
|
||||
.IP \(bu 2
|
||||
replication activity
|
||||
.IP \(bu 2
|
||||
connection accepted events
|
||||
.IP \(bu 2
|
||||
connection closed events
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-version
|
||||
Returns the \fBmongofiles\fP release number.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-uri <connectionString>
|
||||
New in version 3.4.6.
|
||||
|
||||
.sp
|
||||
Specify a resolvable URI
|
||||
connection string (enclose in quotes) to connect to the MongoDB deployment.
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
\-\-uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
For information on the components of the connection string, see
|
||||
the Connection String URI Format documentation.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
For TLS/SSL options, use the command\-line options instead of the
|
||||
URI options for TLS/SSL (Available starting in
|
||||
4.2)\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
\fBIMPORTANT:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
The following command\-line options cannot be used in conjunction
|
||||
with \fI\%\-\-uri\fP option:
|
||||
.INDENT 0.0
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-host\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-port\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-db\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-username\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-password\fP (if the
|
||||
URI connection string also includes the password)
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-authenticationDatabase\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-authenticationMechanism\fP
|
||||
.UNINDENT
|
||||
.sp
|
||||
Instead, specify these options as part of your \fI\%\-\-uri\fP
|
||||
connection string.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-host <hostname><:port>
|
||||
Specifies a resolvable hostname for the \fBmongod\fP that holds
|
||||
your GridFS system. By default \fI\%mongofiles\fP attempts to connect
|
||||
to a MongoDB process running on the localhost port number \fB27017\fP\&.
|
||||
.sp
|
||||
Optionally, specify a port number to connect a MongoDB instance running
|
||||
on a port other than 27017.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-host\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-port <port>
|
||||
\fIDefault\fP: 27017
|
||||
.sp
|
||||
Specifies the TCP port on which the MongoDB instance listens for
|
||||
client connections.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-port\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-ipv6
|
||||
\fIRemoved in version 3.0.\fP
|
||||
.sp
|
||||
Enables IPv6 support and allows \fBmongofiles\fP to connect to the
|
||||
MongoDB instance using an IPv6 network. Prior to MongoDB 3.0, you
|
||||
had to specify \fI\%\-\-ipv6\fP to use IPv6. In MongoDB 3.0 and later, IPv6
|
||||
is always enabled.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-ssl
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Enables connection to a \fBmongod\fP or \fBmongos\fP that has
|
||||
TLS/SSL support enabled.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslCAFile <filename>
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specifies the \fB\&.pem\fP file that contains the root certificate chain
|
||||
from the Certificate Authority. Specify the file name of the
|
||||
\fB\&.pem\fP file using relative or absolute paths.
|
||||
.sp
|
||||
Starting in version 3.4, if \fB\-\-tlsCAFile\fP/\fBnet.tls.CAFile\fP (or
|
||||
their aliases \fB\-\-sslCAFile\fP/\fBnet.ssl.CAFile\fP) is not specified
|
||||
and you are not using x.509 authentication, the system\-wide CA
|
||||
certificate store will be used when connecting to an TLS/SSL\-enabled
|
||||
server.
|
||||
.sp
|
||||
To use x.509 authentication, \fB\-\-tlsCAFile\fP or \fBnet.tls.CAFile\fP
|
||||
must be specified unless using \fB\-\-tlsCertificateSelector\fP or
|
||||
\fB\-\-net.tls.certificateSelector\fP\&. Or if using the \fBssl\fP aliases,
|
||||
\fB\-\-sslCAFile\fP or \fBnet.ssl.CAFile\fP must be specified unless using
|
||||
\fB\-\-sslCertificateSelector\fP or \fBnet.ssl.certificateSelector\fP\&.
|
||||
.sp
|
||||
\fBWARNING:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
\fBVersion 3.2 and earlier:\fP For TLS/SSL connections (\fB\-\-ssl\fP) to
|
||||
\fBmongod\fP and \fBmongos\fP, if the \fBmongofiles\fP runs without the
|
||||
\fI\%\-\-sslCAFile\fP, \fBmongofiles\fP will not attempt
|
||||
to validate the server certificates. This creates a vulnerability
|
||||
to expired \fBmongod\fP and \fBmongos\fP certificates as
|
||||
well as to foreign processes posing as valid \fBmongod\fP or
|
||||
\fBmongos\fP instances. Ensure that you \fIalways\fP specify the
|
||||
CA file to validate the server certificates in cases where
|
||||
intrusion is a possibility.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslPEMKeyFile <filename>
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specifies the \fB\&.pem\fP file that contains both the TLS/SSL certificate
|
||||
and key. Specify the file name of the \fB\&.pem\fP file using relative
|
||||
or absolute paths.
|
||||
.sp
|
||||
This option is required when using the \fI\%\-\-ssl\fP option to connect
|
||||
to a \fBmongod\fP or \fBmongos\fP that has
|
||||
\fBCAFile\fP enabled \fIwithout\fP
|
||||
\fBallowConnectionsWithoutCertificates\fP\&.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslPEMKeyPassword <value>
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specifies the password to de\-crypt the certificate\-key file (i.e.
|
||||
\fI\%\-\-sslPEMKeyFile\fP). Use the \fI\%\-\-sslPEMKeyPassword\fP option only if the
|
||||
certificate\-key file is encrypted. In all cases, the \fBmongofiles\fP will
|
||||
redact the password from all logging and reporting output.
|
||||
.sp
|
||||
If the private key in the PEM file is encrypted and you do not specify
|
||||
the \fI\%\-\-sslPEMKeyPassword\fP option, the \fBmongofiles\fP will prompt for a passphrase. See
|
||||
ssl\-certificate\-password\&.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslCRLFile <filename>
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specifies the \fB\&.pem\fP file that contains the Certificate Revocation
|
||||
List. Specify the file name of the \fB\&.pem\fP file using relative or
|
||||
absolute paths.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslAllowInvalidCertificates
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Bypasses the validation checks for server certificates and allows
|
||||
the use of invalid certificates. When using the
|
||||
\fBallowInvalidCertificates\fP setting, MongoDB logs as a
|
||||
warning the use of the invalid certificate.
|
||||
.sp
|
||||
Starting in MongoDB 4.0, if you specify
|
||||
\fB\-\-sslAllowInvalidCertificates\fP or
|
||||
\fBnet.ssl.allowInvalidCertificates: true\fP (or in MongoDB 4.2, the
|
||||
alias \fB\-\-tlsAllowInvalidateCertificates\fP or
|
||||
\fBnet.tls.allowInvalidCertificates: true\fP) when using x.509
|
||||
authentication, an invalid certificate is only sufficient to
|
||||
establish a TLS/SSL connection but is \fIinsufficient\fP for
|
||||
authentication.
|
||||
.sp
|
||||
# We created a separate blurb for tls in the ssl\-clients page.
|
||||
.sp
|
||||
\fBWARNING:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
Although available, avoid using the
|
||||
\fB\-\-sslAllowInvalidCertificates\fP option if possible. If the use of
|
||||
\fB\-\-sslAllowInvalidCertificates\fP is necessary, only use the option
|
||||
on systems where intrusion is not possible.
|
||||
.sp
|
||||
If the \fBmongo\fP shell (and other
|
||||
mongodb\-tools\-support\-ssl) runs with the
|
||||
\fB\-\-sslAllowInvalidCertificates\fP option, the
|
||||
\fBmongo\fP shell (and other
|
||||
mongodb\-tools\-support\-ssl) will not attempt to validate
|
||||
the server certificates. This creates a vulnerability to expired
|
||||
\fBmongod\fP and \fBmongos\fP certificates as
|
||||
well as to foreign processes posing as valid
|
||||
\fBmongod\fP or \fBmongos\fP instances. If you
|
||||
only need to disable the validation of the hostname in the
|
||||
TLS/SSL certificates, see \fB\-\-sslAllowInvalidHostnames\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslAllowInvalidHostnames
|
||||
New in version 3.0.
|
||||
|
||||
.sp
|
||||
Disables the validation of the hostnames in TLS/SSL certificates. Allows
|
||||
\fBmongofiles\fP to connect to MongoDB instances even if the hostname in their
|
||||
certificates do not match the specified hostname.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-username <username>, \-u <username>
|
||||
Specifies a username with which to authenticate to a MongoDB database
|
||||
that uses authentication. Use in conjunction with the \fI\%\-\-password\fP and
|
||||
\fI\%\-\-authenticationDatabase\fP options.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-username\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-password <password>, \-p <password>
|
||||
Specifies a password with which to authenticate to a MongoDB database
|
||||
that uses authentication. Use in conjunction with the \fI\%\-\-username\fP and
|
||||
\fI\%\-\-authenticationDatabase\fP options.
|
||||
.sp
|
||||
Changed in version 3.0.2: To prompt the user
|
||||
for the password, pass the \fI\%\-\-username\fP option without
|
||||
\fI\%\-\-password\fP or specify an empty string as the \fI\%\-\-password\fP value,
|
||||
as in \fB\-\-password ""\fP .
|
||||
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-password\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-authenticationDatabase <dbname>
|
||||
Specifies the authentication database where the specified \fI\%\-\-username\fP has been created.
|
||||
See user\-authentication\-database\&.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-authenticationDatabase\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-authenticationMechanism <name>
|
||||
\fIDefault\fP: SCRAM\-SHA\-1
|
||||
.sp
|
||||
Specifies the authentication mechanism the \fBmongofiles\fP instance uses to
|
||||
authenticate to the \fBmongod\fP or \fBmongos\fP\&.
|
||||
.sp
|
||||
Changed in version 4.0: MongoDB removes support for the deprecated MongoDB
|
||||
Challenge\-Response (\fBMONGODB\-CR\fP) authentication mechanism.
|
||||
.sp
|
||||
MongoDB adds support for SCRAM mechanism using the SHA\-256 hash
|
||||
function (\fBSCRAM\-SHA\-256\fP).
|
||||
|
||||
.TS
|
||||
center;
|
||||
|l|l|.
|
||||
_
|
||||
T{
|
||||
Value
|
||||
T} T{
|
||||
Description
|
||||
T}
|
||||
_
|
||||
T{
|
||||
SCRAM\-SHA\-1
|
||||
T} T{
|
||||
\fI\%RFC 5802\fP standard
|
||||
Salted Challenge Response Authentication Mechanism using the SHA\-1
|
||||
hash function.
|
||||
T}
|
||||
_
|
||||
T{
|
||||
SCRAM\-SHA\-256
|
||||
T} T{
|
||||
\fI\%RFC 7677\fP standard
|
||||
Salted Challenge Response Authentication Mechanism using the SHA\-256
|
||||
hash function.
|
||||
.sp
|
||||
Requires featureCompatibilityVersion set to \fB4.0\fP\&.
|
||||
.sp
|
||||
New in version 4.0.
|
||||
T}
|
||||
_
|
||||
T{
|
||||
MONGODB\-X509
|
||||
T} T{
|
||||
MongoDB TLS/SSL certificate authentication.
|
||||
T}
|
||||
_
|
||||
T{
|
||||
GSSAPI (Kerberos)
|
||||
T} T{
|
||||
External authentication using Kerberos. This mechanism is
|
||||
available only in \fI\%MongoDB Enterprise\fP\&.
|
||||
T}
|
||||
_
|
||||
T{
|
||||
PLAIN (LDAP SASL)
|
||||
T} T{
|
||||
External authentication using LDAP. You can also use \fBPLAIN\fP
|
||||
for authenticating in\-database users. \fBPLAIN\fP transmits
|
||||
passwords in plain text. This mechanism is available only in
|
||||
\fI\%MongoDB Enterprise\fP\&.
|
||||
T}
|
||||
_
|
||||
.TE
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-authenticationMechanism\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-gssapiServiceName
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specify the name of the service using GSSAPI/Kerberos\&. Only required if the service does not use the
|
||||
default name of \fBmongodb\fP\&.
|
||||
.sp
|
||||
This option is available only in MongoDB Enterprise.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-gssapiHostName
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specify the hostname of a service using GSSAPI/Kerberos\&. \fIOnly\fP required if the hostname of a machine does
|
||||
not match the hostname resolved by DNS.
|
||||
.sp
|
||||
This option is available only in MongoDB Enterprise.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-db <database>, \-d <database>
|
||||
Specifies the name of the database on which to run the \fBmongofiles\fP\&.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-db\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-local <filename>, \-l <filename>
|
||||
Specifies the local filesystem name of a file for get and put
|
||||
operations.
|
||||
.sp
|
||||
In the \fBmongofiles put\fP and \fBmongofiles get\fP commands,
|
||||
the required \fB<filename>\fP modifier refers to the name the object will
|
||||
have in GridFS. \fI\%mongofiles\fP assumes that this reflects the
|
||||
file\(aqs name on the local file system. This setting overrides this
|
||||
default.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-type <MIME>
|
||||
Provides the ability to specify a MIME type to describe the file
|
||||
inserted into GridFS storage. \fI\%mongofiles\fP omits this option in
|
||||
the default operation.
|
||||
.sp
|
||||
Use only with \fBmongofiles put\fP operations.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-replace, \-r
|
||||
Alters the behavior of \fBmongofiles put\fP to replace existing
|
||||
GridFS objects with the specified local file, rather than adding an
|
||||
additional object with the same name.
|
||||
.sp
|
||||
In the default operation, files will not be overwritten by a
|
||||
\fBmongofiles put\fP option.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-prefix string
|
||||
\fIDefault\fP: fs
|
||||
.sp
|
||||
GridFS prefix to use.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-writeConcern <document>
|
||||
\fIDefault\fP: majority
|
||||
.sp
|
||||
Specifies the write concern for each write operation that \fBmongofiles\fP
|
||||
performs.
|
||||
.sp
|
||||
Specify the write concern as a document with w options:
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
\-\-writeConcern "{w:\(aqmajority\(aq}"
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
If the write concern is also included in the \fI\%\-\-uri
|
||||
connection string\fP, the command\-line
|
||||
\fI\%\-\-writeConcern\fP overrides the write concern specified in
|
||||
the URI string.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-readPreference <string|document>
|
||||
\fIDefault\fP: \fBprimary\fP
|
||||
.sp
|
||||
Specifies the read preference for
|
||||
\fBmongofiles\fP\&. The \fI\%\-\-readPreference\fP option can take:
|
||||
.INDENT 7.0
|
||||
.IP \(bu 2
|
||||
A string if specifying only the read preference mode:
|
||||
.INDENT 2.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
\-\-readPreference secondary
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.IP \(bu 2
|
||||
A quote\-enclosed document to specify the mode, the optional
|
||||
read preference tag sets, and the
|
||||
optional maxStalenessSeconds:
|
||||
.INDENT 2.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
\-\-readPreference \(aq{mode: "secondary", tagSets: [ { "region": "east" } ], maxStalenessSeconds: 120}\(aq
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
If specifying the maxStalenessSeconds, the value must be greater than or equal to 90.
|
||||
.sp
|
||||
New in version 4.2.
|
||||
|
||||
.UNINDENT
|
||||
.sp
|
||||
\fBmongofiles\fP defaults to \fBprimary\fP
|
||||
read preference\&.
|
||||
.sp
|
||||
Starting in version 4.2, if the read
|
||||
preference is also included in the \fI\%\-\-uri connection string\fP, the command\-line \fI\%\-\-readPreference\fP overrides the read preference
|
||||
specified in the URI string.
|
||||
.sp
|
||||
\fBWARNING:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
Using a read preference other than
|
||||
\fBprimary\fP with a connection to a \fBmongos\fP may produce
|
||||
inconsistencies, duplicates, or result in missed documents.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH COMMANDS
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B list <prefix>
|
||||
Lists the files in the GridFS store. The characters specified after
|
||||
\fBlist\fP (e.g. \fB<prefix>\fP) optionally limit the list of
|
||||
returned items to files that begin with that string of characters.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B search <string>
|
||||
Lists the files in the GridFS store with names that match any
|
||||
portion of \fB<string>\fP\&.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B put <filename>
|
||||
Copy the specified file from the local file system into GridFS
|
||||
storage.
|
||||
.sp
|
||||
Here, \fB<filename>\fP refers to the name the object will have in
|
||||
GridFS, and \fI\%mongofiles\fP assumes that this reflects the name the
|
||||
file has on the local file system. If the local filename is
|
||||
different use the \fI\%mongofiles \-\-local\fP option.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B get <filename>
|
||||
Copy the specified file from GridFS storage to the local file
|
||||
system.
|
||||
.sp
|
||||
Here, \fB<filename>\fP refers to the name the object will have in
|
||||
GridFS. \fI\%mongofiles\fP writes the file to the local
|
||||
file system using the file\(aqs \fBfilename\fP in GridFS. To choose a
|
||||
different location for the file on the local file system, use the
|
||||
\fI\%\-\-local\fP option.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B get_id "<_id>"
|
||||
New in version 3.2.0.
|
||||
|
||||
.sp
|
||||
Copy the file, specified by its \fB<_id>\fP, from GridFS storage to the
|
||||
local file system.
|
||||
.sp
|
||||
Here \fB<_id>\fP refers to the extended JSON \fB_id\fP of the
|
||||
object in GridFS:
|
||||
.INDENT 7.0
|
||||
.IP \(bu 2
|
||||
Starting in MongoDB 4.2, \fBget_id\fP can accept either ObjectId
|
||||
values or non\-ObjectId values for \fB<_id>\fP\&.
|
||||
.IP \(bu 2
|
||||
In MongoDB 4.0 and earlier, \fBget_id\fP only
|
||||
accepts \fB<ObjectId>\fP values.
|
||||
.UNINDENT
|
||||
.sp
|
||||
\fI\%mongofiles\fP writes the file to the local
|
||||
file system using the file\(aqs \fBfilename\fP in GridFS. To choose a
|
||||
different location for the file on the local file system, use the
|
||||
\fI\%\-\-local\fP option.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B delete <filename>
|
||||
Delete the specified file from GridFS storage.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B delete_id "<_id>"
|
||||
New in version 3.2.0.
|
||||
|
||||
.sp
|
||||
Delete the file, specified by its \fB<_id>\fP, from GridFS storage:
|
||||
.INDENT 7.0
|
||||
.IP \(bu 2
|
||||
Starting in MongoDB 4.2, \fBdelete_id\fP can accept
|
||||
either ObjectId values or non\-ObjectId values for \fB<_id>\fP\&.
|
||||
.IP \(bu 2
|
||||
In MongoDB 4.0 and earlier, \fBdelete_id\fP only
|
||||
accepts \fB<ObjectId>\fP values.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH EXAMPLES
|
||||
.sp
|
||||
To return a list of all files in a GridFS collection in the
|
||||
\fBrecords\fP database, use the following invocation at the system shell:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles \-d records list
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
This \fI\%mongofiles\fP instance will connect to the
|
||||
\fBmongod\fP instance running on the \fB27017\fP localhost
|
||||
interface to specify the same operation on a different port or
|
||||
hostname, and issue a command that resembles one of the following:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles \-\-port 37017 \-d records list
|
||||
mongofiles \-\-host db1.example.net \-d records list
|
||||
mongofiles \-\-host db1.example.net \-\-port 37017 \-d records list
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
Modify any of the following commands as needed if you\(aqre connecting
|
||||
the \fBmongod\fP instances on different ports or hosts.
|
||||
.sp
|
||||
To upload a file named \fB32\-corinth.lp\fP to the GridFS collection in
|
||||
the \fBrecords\fP database, you can use the following command:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles \-d records put 32\-corinth.lp
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
To delete the \fB32\-corinth.lp\fP file from this GridFS collection in
|
||||
the \fBrecords\fP database, you can use the following command:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles \-d records delete 32\-corinth.lp
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
To search for files in the GridFS collection in the \fBrecords\fP
|
||||
database that have the string \fBcorinth\fP in their names, you can use
|
||||
following command:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles \-d records search corinth
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
To list all files in the GridFS collection in the \fBrecords\fP database
|
||||
that begin with the string \fB32\fP, you can use the following command:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles \-d records list 32
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
To fetch the file from the GridFS collection in the \fBrecords\fP
|
||||
database named \fB32\-corinth.lp\fP, you can use the following command:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles \-d records get 32\-corinth.lp
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
To fetch the file from the GridFS collection in the \fBrecords\fP database
|
||||
with \fB_id: ObjectId("56feac751f417d0357e7140f")\fP, you can use
|
||||
the following command:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongofiles \-d records get_id \(aqObjectId("56feac751f417d0357e7140f")\(aq
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
You must include quotation marks around the \fB_id\fP\&.
|
||||
.SH AUTHOR
|
||||
MongoDB Documentation Project
|
||||
.SH COPYRIGHT
|
||||
2008-2019
|
||||
.\" Generated by docutils manpage writer.
|
||||
.
|
||||
1413
debian/mongoimport.1
vendored
1413
debian/mongoimport.1
vendored
File diff suppressed because it is too large
Load Diff
1298
debian/mongoreplay.1
vendored
1298
debian/mongoreplay.1
vendored
File diff suppressed because it is too large
Load Diff
1502
debian/mongorestore.1
vendored
1502
debian/mongorestore.1
vendored
File diff suppressed because it is too large
Load Diff
1243
debian/mongostat.1
vendored
1243
debian/mongostat.1
vendored
File diff suppressed because it is too large
Load Diff
921
debian/mongotop.1
vendored
921
debian/mongotop.1
vendored
@ -1,921 +0,0 @@
|
||||
.\" Man page generated from reStructuredText.
|
||||
.
|
||||
.TH "MONGOTOP" "1" "Aug 16, 2019" "4.2" "mongodb-manual"
|
||||
.SH NAME
|
||||
mongotop \- MongoDB Activity Monitor
|
||||
.
|
||||
.nr rst2man-indent-level 0
|
||||
.
|
||||
.de1 rstReportMargin
|
||||
\\$1 \\n[an-margin]
|
||||
level \\n[rst2man-indent-level]
|
||||
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
-
|
||||
\\n[rst2man-indent0]
|
||||
\\n[rst2man-indent1]
|
||||
\\n[rst2man-indent2]
|
||||
..
|
||||
.de1 INDENT
|
||||
.\" .rstReportMargin pre:
|
||||
. RS \\$1
|
||||
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
||||
. nr rst2man-indent-level +1
|
||||
.\" .rstReportMargin post:
|
||||
..
|
||||
.de UNINDENT
|
||||
. RE
|
||||
.\" indent \\n[an-margin]
|
||||
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
.nr rst2man-indent-level -1
|
||||
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
||||
..
|
||||
.SS On this page
|
||||
.INDENT 0.0
|
||||
.IP \(bu 2
|
||||
\fI\%Description\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Syntax\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Required Access\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Behavior\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Options\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Fields\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Examples\fP
|
||||
.IP \(bu 2
|
||||
\fI\%Additional Information\fP
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.IP "macOS Sierra and Go 1.6 Incompatibility"
|
||||
.sp
|
||||
Users running on macOS Sierra require the 3.2.10 or newer version
|
||||
of mongotop\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH DESCRIPTION
|
||||
.sp
|
||||
\fI\%mongotop\fP provides a method to track the amount of time a
|
||||
MongoDB instance \fBmongod\fP spends reading and writing data.
|
||||
\fI\%mongotop\fP provides statistics on a per\-collection level.
|
||||
By default, \fI\%mongotop\fP returns values every second.
|
||||
.sp
|
||||
Run \fI\%mongotop\fP from the system command line, not the \fBmongo\fP shell.
|
||||
.SH SYNTAX
|
||||
.SS Default
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop [frequency]
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
You can run \fI\%mongotop\fP without any command\-line options to
|
||||
connect to the \fBmongod\fP instance running on the localhost
|
||||
port \fB27017\fP\&. By default, \fI\%mongotop\fP returns values
|
||||
every second.
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
To have \fI\%mongotop\fP report every 30 seconds, specify the
|
||||
time:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop 30
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
When connected to a \fBmongod\fP instance, the program reports
|
||||
first on the connection and then reports on the statistics at the
|
||||
configured frequency.
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
2019\-04\-29T15:35:27.785\-0400 connected to: 127.0.0.1
|
||||
|
||||
ns total read write <timestamp>
|
||||
<db.collection> 81802ms 0ms 81802ms
|
||||
\&...
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SS Command Line Options
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop [options] [frequency]
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
You can run \fI\%mongotop\fP with various \fI\%command\-line
|
||||
options\fP\&.
|
||||
.sp
|
||||
For example, to connect \fI\%mongotop\fP to a
|
||||
\fBmongod\fP instance running on a remote host
|
||||
\fBmongodb0.example.com\fP and report every 30 seconds:
|
||||
.INDENT 0.0
|
||||
.IP \(bu 2
|
||||
You can include the desired frequency of reporting (in this
|
||||
example, 30 seconds) and the \fI\%\-\-uri\fP
|
||||
option to specify the host and port:
|
||||
.INDENT 2.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop 30 \-\-uri mongodb://mongodb0.example.com:27017 [additional options]
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
If the \fBmongod\fP instance requires authentication, you
|
||||
can specify the user, password, and authentication database as part
|
||||
of the URI connection string:
|
||||
.INDENT 2.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop 30 \-\-uri mongodb://user:password@mongodb0.example.com:27017/?authSource=admin [additional options]
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
The user running \fI\%mongotop\fP must have the
|
||||
\fBserverStatus\fP and \fBtop\fP privileges.
|
||||
.sp
|
||||
For more information on the URI connection string, see
|
||||
\fI\%\-\-uri\fP\&.
|
||||
.IP \(bu 2
|
||||
Alternatively, you can use the \fI\%\-\-host\fP
|
||||
and \fI\%\-\-port\fP options to specify the host
|
||||
and port:
|
||||
.INDENT 2.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop 30 \-\-host mongodb0.example.com \-\-port 27017 [additional options]
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
If the \fBmongod\fP instance requires authentication, you
|
||||
can specify the user \fI\%\-u\fP, password
|
||||
\fI\%\-p\fP, and the authentication database
|
||||
\fI\%\-\-authenticationDatabase\fP\&.
|
||||
.INDENT 2.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop 30 \-\-host mongodb0.example.com \-\-port 27017 \-u user \-p password \-\-authenticationDatabase admin [additional options]
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
The user running \fI\%mongotop\fP must have the
|
||||
\fBserverStatus\fP and \fBtop\fP privileges.
|
||||
.UNINDENT
|
||||
.sp
|
||||
For more information on the options available, see
|
||||
\fI\%Options\fP\&.
|
||||
.sp
|
||||
When connected to a \fBmongod\fP instance, the program reports
|
||||
first on the connection and then reports on the statistics at the
|
||||
configured frequency.
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
2019\-04\-29T15:35:27.785\-0400 connected to: 127.0.0.1
|
||||
|
||||
ns total read write <timestamp>
|
||||
<db.collection> 81802ms 0ms 81802ms
|
||||
\&...
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH REQUIRED ACCESS
|
||||
.sp
|
||||
In order to connect to a \fBmongod\fP that enforces
|
||||
authorization, the connecting user must have the
|
||||
\fBserverStatus\fP and \fBtop\fP privileges.
|
||||
.sp
|
||||
The built\-in role \fBclusterMonitor\fP provides these privileges.
|
||||
.SH BEHAVIOR
|
||||
.SS FIPS
|
||||
.sp
|
||||
Starting in version 4.2, MongoDB removes the \fB\-\-sslFIPSMode\fP
|
||||
option for mongotop\&. mongotop
|
||||
will use FIPS compliant connections to
|
||||
\fBmongod\fP/\fBmongos\fP if the
|
||||
\fBmongod\fP/\fBmongos\fP instances are
|
||||
configured to use FIPS mode\&.
|
||||
.SH OPTIONS
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B mongotop
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-help
|
||||
Returns information on the options and use of \fBmongotop\fP\&.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-verbose, \-v
|
||||
Increases the amount of internal reporting returned on standard output
|
||||
or in log files. Increase the verbosity with the \fB\-v\fP form by
|
||||
including the option multiple times, (e.g. \fB\-vvvvv\fP\&.)
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-quiet
|
||||
Runs \fBmongotop\fP in a quiet mode that attempts to limit the amount
|
||||
of output.
|
||||
.sp
|
||||
This option suppresses:
|
||||
.INDENT 7.0
|
||||
.IP \(bu 2
|
||||
output from database commands
|
||||
.IP \(bu 2
|
||||
replication activity
|
||||
.IP \(bu 2
|
||||
connection accepted events
|
||||
.IP \(bu 2
|
||||
connection closed events
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-version
|
||||
Returns the \fBmongotop\fP release number.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-uri <connectionString>
|
||||
New in version 3.4.6.
|
||||
|
||||
.sp
|
||||
Specify a resolvable URI
|
||||
connection string (enclose in quotes) to connect to the MongoDB deployment.
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
\-\-uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
For information on the components of the connection string, see
|
||||
the Connection String URI Format documentation.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
For TLS/SSL options, use the command\-line options instead of the
|
||||
URI options for TLS/SSL (Available starting in
|
||||
4.2)\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
\fBIMPORTANT:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
The following command\-line options cannot be used in conjunction
|
||||
with \fI\%\-\-uri\fP option:
|
||||
.INDENT 0.0
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-host\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-port\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-username\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-password\fP (if the
|
||||
URI connection string also includes the password)
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-authenticationDatabase\fP
|
||||
.IP \(bu 2
|
||||
\fI\%\-\-authenticationMechanism\fP
|
||||
.UNINDENT
|
||||
.sp
|
||||
Instead, specify these options as part of your \fI\%\-\-uri\fP
|
||||
connection string.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-host <hostname><:port>, \-h <hostname><:port>
|
||||
\fIDefault\fP: localhost:27017
|
||||
.sp
|
||||
Specifies a resolvable hostname for the \fBmongod\fP to which to
|
||||
connect. By default, the \fBmongotop\fP attempts to connect to a MongoDB
|
||||
instance running on the localhost on port number \fB27017\fP\&.
|
||||
.sp
|
||||
To connect to a replica set, specify the
|
||||
\fBreplSetName\fP and a seed list of set members, as in
|
||||
the following:
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
\-\-host <replSetName>/<hostname1><:port>,<hostname2><:port>,<...>
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
When specifying the replica set list format, \fBmongotop\fP always connects to
|
||||
the primary\&.
|
||||
.sp
|
||||
You can also connect to any single member of the replica set by specifying
|
||||
the host and port of only that member:
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
\-\-host <hostname1><:port>
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
Changed in version 3.0.0: If you use IPv6 and use the \fB<address>:<port>\fP format, you must
|
||||
enclose the portion of an address and port combination in
|
||||
brackets (e.g. \fB[<address>]\fP).
|
||||
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-host\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
If connected to a replica set where the primary is not
|
||||
reachable, \fBmongotop\fP returns an error message.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-port <port>
|
||||
\fIDefault\fP: 27017
|
||||
.sp
|
||||
Specifies the TCP port on which the MongoDB instance listens for
|
||||
client connections.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-port\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-ipv6
|
||||
\fIRemoved in version 3.0.\fP
|
||||
.sp
|
||||
Enables IPv6 support and allows \fBmongotop\fP to connect to the
|
||||
MongoDB instance using an IPv6 network. Prior to MongoDB 3.0, you
|
||||
had to specify \fI\%\-\-ipv6\fP to use IPv6. In MongoDB 3.0 and later, IPv6
|
||||
is always enabled.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-ssl
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Enables connection to a \fBmongod\fP or \fBmongos\fP that has
|
||||
TLS/SSL support enabled.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslCAFile <filename>
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specifies the \fB\&.pem\fP file that contains the root certificate chain
|
||||
from the Certificate Authority. Specify the file name of the
|
||||
\fB\&.pem\fP file using relative or absolute paths.
|
||||
.sp
|
||||
Starting in version 3.4, if \fB\-\-tlsCAFile\fP/\fBnet.tls.CAFile\fP (or
|
||||
their aliases \fB\-\-sslCAFile\fP/\fBnet.ssl.CAFile\fP) is not specified
|
||||
and you are not using x.509 authentication, the system\-wide CA
|
||||
certificate store will be used when connecting to an TLS/SSL\-enabled
|
||||
server.
|
||||
.sp
|
||||
To use x.509 authentication, \fB\-\-tlsCAFile\fP or \fBnet.tls.CAFile\fP
|
||||
must be specified unless using \fB\-\-tlsCertificateSelector\fP or
|
||||
\fB\-\-net.tls.certificateSelector\fP\&. Or if using the \fBssl\fP aliases,
|
||||
\fB\-\-sslCAFile\fP or \fBnet.ssl.CAFile\fP must be specified unless using
|
||||
\fB\-\-sslCertificateSelector\fP or \fBnet.ssl.certificateSelector\fP\&.
|
||||
.sp
|
||||
\fBWARNING:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
\fBVersion 3.2 and earlier:\fP For TLS/SSL connections (\fB\-\-ssl\fP) to
|
||||
\fBmongod\fP and \fBmongos\fP, if the \fBmongotop\fP runs without the
|
||||
\fI\%\-\-sslCAFile\fP, \fBmongotop\fP will not attempt
|
||||
to validate the server certificates. This creates a vulnerability
|
||||
to expired \fBmongod\fP and \fBmongos\fP certificates as
|
||||
well as to foreign processes posing as valid \fBmongod\fP or
|
||||
\fBmongos\fP instances. Ensure that you \fIalways\fP specify the
|
||||
CA file to validate the server certificates in cases where
|
||||
intrusion is a possibility.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslPEMKeyFile <filename>
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specifies the \fB\&.pem\fP file that contains both the TLS/SSL certificate
|
||||
and key. Specify the file name of the \fB\&.pem\fP file using relative
|
||||
or absolute paths.
|
||||
.sp
|
||||
This option is required when using the \fI\%\-\-ssl\fP option to connect
|
||||
to a \fBmongod\fP or \fBmongos\fP that has
|
||||
\fBCAFile\fP enabled \fIwithout\fP
|
||||
\fBallowConnectionsWithoutCertificates\fP\&.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslPEMKeyPassword <value>
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specifies the password to de\-crypt the certificate\-key file (i.e.
|
||||
\fI\%\-\-sslPEMKeyFile\fP). Use the \fI\%\-\-sslPEMKeyPassword\fP option only if the
|
||||
certificate\-key file is encrypted. In all cases, the \fBmongotop\fP will
|
||||
redact the password from all logging and reporting output.
|
||||
.sp
|
||||
If the private key in the PEM file is encrypted and you do not specify
|
||||
the \fI\%\-\-sslPEMKeyPassword\fP option, the \fBmongotop\fP will prompt for a passphrase. See
|
||||
ssl\-certificate\-password\&.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslCRLFile <filename>
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specifies the \fB\&.pem\fP file that contains the Certificate Revocation
|
||||
List. Specify the file name of the \fB\&.pem\fP file using relative or
|
||||
absolute paths.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslAllowInvalidCertificates
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Bypasses the validation checks for server certificates and allows
|
||||
the use of invalid certificates. When using the
|
||||
\fBallowInvalidCertificates\fP setting, MongoDB logs as a
|
||||
warning the use of the invalid certificate.
|
||||
.sp
|
||||
Starting in MongoDB 4.0, if you specify
|
||||
\fB\-\-sslAllowInvalidCertificates\fP or
|
||||
\fBnet.ssl.allowInvalidCertificates: true\fP (or in MongoDB 4.2, the
|
||||
alias \fB\-\-tlsAllowInvalidateCertificates\fP or
|
||||
\fBnet.tls.allowInvalidCertificates: true\fP) when using x.509
|
||||
authentication, an invalid certificate is only sufficient to
|
||||
establish a TLS/SSL connection but is \fIinsufficient\fP for
|
||||
authentication.
|
||||
.sp
|
||||
# We created a separate blurb for tls in the ssl\-clients page.
|
||||
.sp
|
||||
\fBWARNING:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
Although available, avoid using the
|
||||
\fB\-\-sslAllowInvalidCertificates\fP option if possible. If the use of
|
||||
\fB\-\-sslAllowInvalidCertificates\fP is necessary, only use the option
|
||||
on systems where intrusion is not possible.
|
||||
.sp
|
||||
If the \fBmongo\fP shell (and other
|
||||
mongodb\-tools\-support\-ssl) runs with the
|
||||
\fB\-\-sslAllowInvalidCertificates\fP option, the
|
||||
\fBmongo\fP shell (and other
|
||||
mongodb\-tools\-support\-ssl) will not attempt to validate
|
||||
the server certificates. This creates a vulnerability to expired
|
||||
\fBmongod\fP and \fBmongos\fP certificates as
|
||||
well as to foreign processes posing as valid
|
||||
\fBmongod\fP or \fBmongos\fP instances. If you
|
||||
only need to disable the validation of the hostname in the
|
||||
TLS/SSL certificates, see \fB\-\-sslAllowInvalidHostnames\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-sslAllowInvalidHostnames
|
||||
New in version 3.0.
|
||||
|
||||
.sp
|
||||
Disables the validation of the hostnames in TLS/SSL certificates. Allows
|
||||
\fBmongotop\fP to connect to MongoDB instances even if the hostname in their
|
||||
certificates do not match the specified hostname.
|
||||
.sp
|
||||
For more information about TLS/SSL and MongoDB, see
|
||||
/tutorial/configure\-ssl and
|
||||
/tutorial/configure\-ssl\-clients .
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-username <username>, \-u <username>
|
||||
Specifies a username with which to authenticate to a MongoDB database
|
||||
that uses authentication. Use in conjunction with the \fI\%\-\-password\fP and
|
||||
\fI\%\-\-authenticationDatabase\fP options.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-username\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-password <password>, \-p <password>
|
||||
Specifies a password with which to authenticate to a MongoDB database
|
||||
that uses authentication. Use in conjunction with the \fI\%\-\-username\fP and
|
||||
\fI\%\-\-authenticationDatabase\fP options.
|
||||
.sp
|
||||
Changed in version 3.0.2: To prompt the user
|
||||
for the password, pass the \fI\%\-\-username\fP option without
|
||||
\fI\%\-\-password\fP or specify an empty string as the \fI\%\-\-password\fP value,
|
||||
as in \fB\-\-password ""\fP .
|
||||
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-password\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-authenticationDatabase <dbname>
|
||||
Specifies the authentication database where the specified \fI\%\-\-username\fP has been created.
|
||||
See user\-authentication\-database\&.
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-authenticationDatabase\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
Changed in version 3.0.0: \fI\%\-\-authenticationDatabase\fP is required for \fBmongod\fP
|
||||
and \fBmongos\fP instances that use authentication\&.
|
||||
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-authenticationMechanism <name>
|
||||
\fIDefault\fP: SCRAM\-SHA\-1
|
||||
.sp
|
||||
Specifies the authentication mechanism the \fBmongotop\fP instance uses to
|
||||
authenticate to the \fBmongod\fP or \fBmongos\fP\&.
|
||||
.sp
|
||||
Changed in version 4.0: MongoDB removes support for the deprecated MongoDB
|
||||
Challenge\-Response (\fBMONGODB\-CR\fP) authentication mechanism.
|
||||
.sp
|
||||
MongoDB adds support for SCRAM mechanism using the SHA\-256 hash
|
||||
function (\fBSCRAM\-SHA\-256\fP).
|
||||
|
||||
.TS
|
||||
center;
|
||||
|l|l|.
|
||||
_
|
||||
T{
|
||||
Value
|
||||
T} T{
|
||||
Description
|
||||
T}
|
||||
_
|
||||
T{
|
||||
SCRAM\-SHA\-1
|
||||
T} T{
|
||||
\fI\%RFC 5802\fP standard
|
||||
Salted Challenge Response Authentication Mechanism using the SHA\-1
|
||||
hash function.
|
||||
T}
|
||||
_
|
||||
T{
|
||||
SCRAM\-SHA\-256
|
||||
T} T{
|
||||
\fI\%RFC 7677\fP standard
|
||||
Salted Challenge Response Authentication Mechanism using the SHA\-256
|
||||
hash function.
|
||||
.sp
|
||||
Requires featureCompatibilityVersion set to \fB4.0\fP\&.
|
||||
.sp
|
||||
New in version 4.0.
|
||||
T}
|
||||
_
|
||||
T{
|
||||
MONGODB\-X509
|
||||
T} T{
|
||||
MongoDB TLS/SSL certificate authentication.
|
||||
T}
|
||||
_
|
||||
T{
|
||||
GSSAPI (Kerberos)
|
||||
T} T{
|
||||
External authentication using Kerberos. This mechanism is
|
||||
available only in \fI\%MongoDB Enterprise\fP\&.
|
||||
T}
|
||||
_
|
||||
T{
|
||||
PLAIN (LDAP SASL)
|
||||
T} T{
|
||||
External authentication using LDAP. You can also use \fBPLAIN\fP
|
||||
for authenticating in\-database users. \fBPLAIN\fP transmits
|
||||
passwords in plain text. This mechanism is available only in
|
||||
\fI\%MongoDB Enterprise\fP\&.
|
||||
T}
|
||||
_
|
||||
.TE
|
||||
.sp
|
||||
\fBNOTE:\fP
|
||||
.INDENT 7.0
|
||||
.INDENT 3.5
|
||||
You cannot specify both \fI\%\-\-authenticationMechanism\fP and \fI\%\-\-uri\fP\&.
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-gssapiServiceName
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specify the name of the service using GSSAPI/Kerberos\&. Only required if the service does not use the
|
||||
default name of \fBmongodb\fP\&.
|
||||
.sp
|
||||
This option is available only in MongoDB Enterprise.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-gssapiHostName
|
||||
New in version 2.6.
|
||||
|
||||
.sp
|
||||
Specify the hostname of a service using GSSAPI/Kerberos\&. \fIOnly\fP required if the hostname of a machine does
|
||||
not match the hostname resolved by DNS.
|
||||
.sp
|
||||
This option is available only in MongoDB Enterprise.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-locks
|
||||
Toggles the mode of \fI\%mongotop\fP to report on use of per\-database
|
||||
locks\&. This data is only available when connected to a
|
||||
MongoDB 2.6 or older instance.
|
||||
.sp
|
||||
\fI\%\-\-locks\fP returns an error when called against a \fBmongod\fP 3.0 or
|
||||
newer instance that does not report per\-database lock usage.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-rowcount int, \-n int
|
||||
Number of lines of data that \fBmongotop\fP should print. "0 for indefinite"
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-\-json
|
||||
New in version 3.0.0.
|
||||
|
||||
.sp
|
||||
Returns output for \fBmongotop\fP in JSON format.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B <sleeptime>
|
||||
The final argument is the length of time, in seconds, that
|
||||
\fBmongotop\fP waits in between calls. By default \fBmongotop\fP returns
|
||||
data every second.
|
||||
.UNINDENT
|
||||
.SH FIELDS
|
||||
.sp
|
||||
When connected to a \fBmongod\fP instance, the program reports
|
||||
first on the connection and then reports on the statistics at the
|
||||
configured frequency. \fI\%mongotop\fP returns time values
|
||||
specified in milliseconds (ms.)
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
2019\-04\-29T15:35:27.785\-0400 connected to: 127.0.0.1
|
||||
|
||||
ns total read write <timestamp>
|
||||
<db.collection> 81802ms 0ms 81802ms
|
||||
\&...
|
||||
|
||||
ns total read write <timestamp>
|
||||
<db.collection> 0ms 0ms 0ms
|
||||
\&...
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
\fI\%mongotop\fP only reports active namespaces or databases,
|
||||
depending on the \fI\%\-\-locks\fP option. If you don\(aqt see a database
|
||||
or collection, it has received no recent activity. You can issue a
|
||||
simple operation in the \fBmongo\fP shell to generate activity to
|
||||
affect the output of \fI\%mongotop\fP\&.
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B mongotop.ns
|
||||
Contains the database namespace, which combines the database name
|
||||
and collection.
|
||||
.sp
|
||||
If you use the \fI\%mongotop \-\-locks\fP, the \fI\%ns\fP
|
||||
field does not appear in the \fI\%mongotop\fP output.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B mongotop.db
|
||||
Contains the name of the database. The database named \fB\&.\fP refers
|
||||
to the global lock, rather than a specific database.
|
||||
.sp
|
||||
This field does not appear unless you have invoked
|
||||
\fI\%mongotop\fP with the \fI\%\-\-locks\fP option.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B mongotop.total
|
||||
Provides the total amount of time that this \fBmongod\fP spent
|
||||
operating on this namespace.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B mongotop.read
|
||||
Provides the amount of time that this \fBmongod\fP spent
|
||||
performing read operations on this namespace.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B mongotop.write
|
||||
Provides the amount of time that this \fBmongod\fP spent
|
||||
performing write operations on this namespace.
|
||||
.UNINDENT
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B mongotop.<timestamp>
|
||||
Provides a time stamp for the returned data.
|
||||
.UNINDENT
|
||||
.SH EXAMPLES
|
||||
.sp
|
||||
By default \fI\%mongotop\fP connects to the MongoDB instance
|
||||
running on the localhost port \fB27017\fP\&. However, \fI\%mongotop\fP can optionally
|
||||
connect to remote \fBmongod\fP
|
||||
instances. See the \fI\%mongotop options\fP for more
|
||||
information.
|
||||
.sp
|
||||
To force \fI\%mongotop\fP to return less frequently specify a number, in
|
||||
seconds at the end of the command. In this example, \fI\%mongotop\fP will
|
||||
return every 15 seconds.
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop 15
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
This command produces the following output:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
2019\-04\-29T15:35:27.785\-0400 connected to: 127.0.0.1
|
||||
|
||||
|
||||
ns total read write 2019\-04\-29T15:35:57\-04:00
|
||||
admin.system.roles 0ms 0ms 0ms
|
||||
admin.system.users 0ms 0ms 0ms
|
||||
admin.system.version 0ms 0ms 0ms
|
||||
config.system.sessions 0ms 0ms 0ms
|
||||
local.startup_log 0ms 0ms 0ms
|
||||
local.system.replset 0ms 0ms 0ms
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.sp
|
||||
To return a \fI\%mongotop\fP report every 5 minutes, use the
|
||||
following command:
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
.sp
|
||||
.nf
|
||||
.ft C
|
||||
mongotop 300
|
||||
.ft P
|
||||
.fi
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
.SH ADDITIONAL INFORMATION
|
||||
.sp
|
||||
For more information about monitoring MongoDB, see
|
||||
/administration/monitoring\&.
|
||||
.sp
|
||||
For additional background on various other MongoDB status outputs see:
|
||||
.INDENT 0.0
|
||||
.IP \(bu 2
|
||||
/reference/command/serverStatus
|
||||
.IP \(bu 2
|
||||
/reference/command/replSetGetStatus
|
||||
.IP \(bu 2
|
||||
/reference/command/dbStats
|
||||
.IP \(bu 2
|
||||
/reference/command/collStats
|
||||
.UNINDENT
|
||||
.sp
|
||||
For an additional utility that provides MongoDB metrics
|
||||
see mongostat\&.
|
||||
.SH AUTHOR
|
||||
MongoDB Documentation Project
|
||||
.SH COPYRIGHT
|
||||
2008-2019
|
||||
.\" Generated by docutils manpage writer.
|
||||
.
|
||||
@ -10,15 +10,6 @@ COMPONENTS
|
||||
|
||||
UTILITIES
|
||||
|
||||
mongodump - Create a binary dump of the contents of a database.
|
||||
mongorestore - Restore data from the output created by mongodump.
|
||||
mongoexport - Export the contents of a collection to JSON or CSV.
|
||||
mongoimport - Import data from JSON, CSV or TSV.
|
||||
mongofiles - Put, get and delete files from GridFS.
|
||||
mongostat - Show the status of a running mongod/mongos.
|
||||
bsondump - Convert BSON files into human-readable formats.
|
||||
mongoreplay - Traffic capture and replay tool.
|
||||
mongotop - Track time spent reading and writing data.
|
||||
install_compass - Installs MongoDB Compass for your platform.
|
||||
|
||||
BUILDING
|
||||
|
||||
@ -284,8 +284,6 @@ variables:
|
||||
use_scons_cache: true
|
||||
multiversion_platform: windows
|
||||
multiversion_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: false
|
||||
jstestfuzz_num_generated_files: 35
|
||||
large_distro_name: windows-64-vs2017-compile
|
||||
tasks:
|
||||
@ -657,7 +655,7 @@ functions:
|
||||
background: true
|
||||
system_log: true
|
||||
script: |
|
||||
proc_list="(bsondump|java|lein|mongo|python|_test$|_test\.exe$)"
|
||||
proc_list="(java|lein|mongo|python|_test$|_test\.exe$)"
|
||||
if [ "Windows_NT" = "$OS" ]; then
|
||||
get_pids() {
|
||||
proc_pids=$(tasklist /fo:csv |
|
||||
@ -959,39 +957,6 @@ functions:
|
||||
fi
|
||||
fi
|
||||
|
||||
"build new tools":
|
||||
command: shell.exec
|
||||
params:
|
||||
working_dir: src/src/mongo/gotools/src/github.com/mongodb/mongo-tools
|
||||
script: |
|
||||
set -o verbose
|
||||
set -o errexit
|
||||
|
||||
# make sure newlines in the scripts are handled correctly by windows
|
||||
if [ "Windows_NT" = "$OS" ]; then
|
||||
set -o igncr
|
||||
fi;
|
||||
|
||||
# set_goenv provides set_goenv(), print_ldflags() and print_tags() used below
|
||||
. ./set_goenv.sh
|
||||
GOROOT="" set_goenv || exit
|
||||
env | grep ^GO
|
||||
go version
|
||||
|
||||
build_tools="bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop"
|
||||
|
||||
if [ "${build_mongoreplay}" = "true" ]; then
|
||||
build_tools="$build_tools mongoreplay"
|
||||
fi
|
||||
|
||||
for i in $build_tools; do
|
||||
go build -ldflags "$(print_ldflags)" ${args} -tags "$(print_tags ${tooltags})" -o "../../../../../../mongo-tools/$i${exe|}" $i/main/$i.go
|
||||
"../../../../../../mongo-tools/$i${exe|}" --version
|
||||
done
|
||||
|
||||
mkdir -p ../../../../../../mongo-tools/distsrc
|
||||
cp THIRD-PARTY-NOTICES ../../../../../../mongo-tools/distsrc/THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
"get all modified patch files":
|
||||
command: shell.exec
|
||||
params:
|
||||
@ -2336,7 +2301,7 @@ functions:
|
||||
params:
|
||||
silent: true
|
||||
script: |
|
||||
process_kill_list="(^cl\.exe$|bsondump|java|lein|lldb|mongo|python|_test$|_test\.exe$)"
|
||||
process_kill_list="(^cl\.exe$|java|lein|lldb|mongo|python|_test$|_test\.exe$)"
|
||||
# Exclude Evergreen agent processes and other system daemons
|
||||
process_exclude_list="(main|tuned|evergreen)"
|
||||
|
||||
@ -3416,7 +3381,7 @@ functions:
|
||||
script: |
|
||||
set -o verbose
|
||||
|
||||
hang_analyzer_option="-o file -o stdout -p ${hang_analyzer_processes|dbtest,java,mongo,mongod,mongos,python,_test} -g bsondump,mongodump,mongoexport,mongofiles,mongoimport,mongoreplay,mongorestore,mongostat,mongotop"
|
||||
hang_analyzer_option="-o file -o stdout -p ${hang_analyzer_processes|dbtest,java,mongo,mongod,mongos,python,_test}"
|
||||
|
||||
if [ ${hang_analyzer_dump_core|true} = true ]; then
|
||||
hang_analyzer_option="-c $hang_analyzer_option"
|
||||
@ -3649,7 +3614,6 @@ tasks:
|
||||
- name: compile
|
||||
depends_on: []
|
||||
commands:
|
||||
- func: "build new tools"
|
||||
- func: "scons compile"
|
||||
vars:
|
||||
targets: >-
|
||||
@ -3662,8 +3626,6 @@ tasks:
|
||||
${msi_target|}
|
||||
${mh_target|}
|
||||
task_compile_flags: >-
|
||||
--use-new-tools
|
||||
--build-mongoreplay="${build_mongoreplay}"
|
||||
--detect-odr-violations
|
||||
--install-mode=hygienic
|
||||
--separate-debug
|
||||
@ -3888,15 +3850,12 @@ tasks:
|
||||
- name: compile_core_tools
|
||||
depends_on: []
|
||||
commands:
|
||||
- func: "build new tools"
|
||||
- func: "scons compile"
|
||||
vars:
|
||||
targets: install-core install-tools archive-dist ${mh_target|}
|
||||
compiling_for_test: true
|
||||
additional_targets: ""
|
||||
task_compile_flags: >-
|
||||
--use-new-tools
|
||||
--build-mongoreplay="${build_mongoreplay}"
|
||||
--detect-odr-violations
|
||||
--install-mode=hygienic
|
||||
--separate-debug
|
||||
@ -3918,14 +3877,11 @@ tasks:
|
||||
## compile_all - build all scons targets ##
|
||||
- name: compile_all
|
||||
commands:
|
||||
- func: "build new tools"
|
||||
- func: "scons compile"
|
||||
vars:
|
||||
targets: all
|
||||
compiling_for_test: true
|
||||
task_compile_flags: >-
|
||||
--use-new-tools
|
||||
--build-mongoreplay="${build_mongoreplay}"
|
||||
--detect-odr-violations
|
||||
- command: s3.put
|
||||
params:
|
||||
@ -8433,8 +8389,6 @@ buildvariants:
|
||||
# generated suites. Once everything is converted to generated suites, we should remove the
|
||||
# '--repeatSuites=10' from the test_flags. This will be done in SERVER-38817.
|
||||
scons_cache_scope: shared
|
||||
tooltags: ""
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -8464,8 +8418,6 @@ buildvariants:
|
||||
compile_flags: --dbg=on --opt=on -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars --enable-free-mon=off --enable-http-client=off
|
||||
scons_cache_scope: shared
|
||||
test_flags: --excludeWithAnyTags=requires_http_client
|
||||
tooltags: ""
|
||||
build_mongoreplay: true
|
||||
target_resmoke_time: 15
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -8506,7 +8458,6 @@ buildvariants:
|
||||
resmoke_jobs_factor: 0.5 # Avoid starting too many mongod's
|
||||
compile_flags: --dbg=on --opt=on -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars --enable-free-mon=off --enable-http-client=off
|
||||
use_scons_cache: true
|
||||
build_mongoreplay: true
|
||||
test_flags: --excludeWithAnyTags=requires_http_client
|
||||
|
||||
- name: linux-64-duroff
|
||||
@ -8522,8 +8473,6 @@ buildvariants:
|
||||
# exclude those tests as well.
|
||||
test_flags: --nojournal --excludeWithAnyTags=requires_journaling,requires_replication,requires_sharding,uses_transactions,requires_http_client
|
||||
scons_cache_scope: shared
|
||||
tooltags: ""
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -8560,8 +8509,6 @@ buildvariants:
|
||||
packager_distro: ubuntu1804
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -8615,8 +8562,6 @@ buildvariants:
|
||||
packager_distro: ubuntu1804
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -8667,8 +8612,6 @@ buildvariants:
|
||||
packager_distro: ubuntu1604
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -8730,8 +8673,6 @@ buildvariants:
|
||||
packager_arch: arm64
|
||||
packager_distro: ubuntu1604
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: ubuntu1604
|
||||
multiversion_architecture: arm64
|
||||
multiversion_architecture_42_or_later: aarch64
|
||||
@ -8778,8 +8719,6 @@ buildvariants:
|
||||
packager_arch: arm64
|
||||
packager_distro: ubuntu1804
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: ubuntu1804
|
||||
multiversion_architecture: arm64
|
||||
multiversion_architecture_42_or_later: aarch64
|
||||
@ -8824,8 +8763,6 @@ buildvariants:
|
||||
packager_arch: arm64
|
||||
packager_distro: ubuntu1804
|
||||
repo_edition: org
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: ubuntu1804
|
||||
multiversion_architecture: arm64
|
||||
multiversion_architecture_42_or_later: aarch64
|
||||
@ -8857,8 +8794,6 @@ buildvariants:
|
||||
packager_arch: ppc64le
|
||||
packager_distro: ubuntu1804
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: ubuntu1804
|
||||
multiversion_architecture: ppc64le
|
||||
multiversion_edition: enterprise
|
||||
@ -8913,8 +8848,6 @@ buildvariants:
|
||||
packager_arch: s390x
|
||||
packager_distro: ubuntu1804
|
||||
repo_edition: org
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -8946,8 +8879,6 @@ buildvariants:
|
||||
packager_arch: s390x
|
||||
packager_distro: ubuntu1804
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: ubuntu1804
|
||||
multiversion_architecture: s390x
|
||||
multiversion_edition: enterprise
|
||||
@ -9004,8 +8935,6 @@ buildvariants:
|
||||
packager_distro: amazon
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
virtualenv: /opt/mongodbtoolchain/v3/bin/virtualenv
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -9055,8 +8984,6 @@ buildvariants:
|
||||
packager_distro: amazon
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
virtualenv: /opt/mongodbtoolchain/v3/bin/virtualenv
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -9114,8 +9041,6 @@ buildvariants:
|
||||
packager_distro: amazon2
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -9168,8 +9093,6 @@ buildvariants:
|
||||
packager_distro: amazon2
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -9237,8 +9160,6 @@ buildvariants:
|
||||
scons_cache_scope: shared
|
||||
multiversion_platform: windows
|
||||
multiversion_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: false
|
||||
jstestfuzz_num_generated_files: 35
|
||||
target_resmoke_time: 20
|
||||
large_distro_name: windows-64-vs2017-compile
|
||||
@ -9274,8 +9195,6 @@ buildvariants:
|
||||
scons_cache_scope: shared
|
||||
multiversion_platform: windows
|
||||
multiversion_edition: enterprise
|
||||
tooltags: ""
|
||||
build_mongoreplay: false
|
||||
large_distro_name: windows-64-vs2017-compile
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -9428,8 +9347,6 @@ buildvariants:
|
||||
--serviceExecutor=adaptive \
|
||||
--mongodSetParameters="adaptiveServiceExecutorReservedThreads: 8" \
|
||||
--mongosSetParameters="adaptiveServiceExecutorReservedThreads: 8"
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: false
|
||||
tasks:
|
||||
- name: compile_TG
|
||||
distros:
|
||||
@ -9458,8 +9375,6 @@ buildvariants:
|
||||
scons_cache_scope: shared
|
||||
multiversion_platform: windows
|
||||
multiversion_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: false
|
||||
large_distro_name: windows-64-vs2017-compile
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -9509,8 +9424,6 @@ buildvariants:
|
||||
python: '/cygdrive/c/python/python37/python.exe'
|
||||
ext: zip
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: false
|
||||
large_distro_name: windows-64-vs2017-compile
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -9565,8 +9478,6 @@ buildvariants:
|
||||
python: '/cygdrive/c/python/python37/python.exe'
|
||||
ext: zip
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: false
|
||||
tasks:
|
||||
# This variant tests that unoptimized, DEBUG mongos and mongod binaries can run on Windows.
|
||||
# It has a minimal amount of tasks because unoptimized builds are slow, which causes
|
||||
@ -9593,8 +9504,6 @@ buildvariants:
|
||||
compile_env: DEVELOPER_DIR=/Applications/Xcode10.2.app
|
||||
compile_flags: --ssl -j$(sysctl -n hw.logicalcpu) --libc++ --variables-files=etc/scons/xcode_macosx.vars
|
||||
resmoke_jobs_max: 6
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
- name: .aggregation !.auth !.encrypt !.unwind
|
||||
@ -9638,8 +9547,6 @@ buildvariants:
|
||||
resmoke_jobs_max: 6
|
||||
compile_env: DEVELOPER_DIR=/Applications/Xcode10.2.app
|
||||
compile_flags: --ssl --dbg=on --opt=on -j$(sysctl -n hw.logicalcpu) --libc++ --variables-files=etc/scons/xcode_macosx.vars
|
||||
tooltags: ""
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
- name: aggregation
|
||||
@ -9670,8 +9577,6 @@ buildvariants:
|
||||
compile_env: DEVELOPER_DIR=/Applications/Xcode10.2.app
|
||||
compile_flags: --ssl -j$(sysctl -n hw.logicalcpu) --libc++ --variables-files=etc/scons/xcode_macosx.vars
|
||||
resmoke_jobs_max: 6
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
- name: audit
|
||||
@ -9769,8 +9674,6 @@ buildvariants:
|
||||
packager_distro: rhel62
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
jstestfuzz_num_generated_files: 40
|
||||
jstestfuzz_concurrent_num_files: 10
|
||||
target_resmoke_time: 10
|
||||
@ -9871,8 +9774,6 @@ buildvariants:
|
||||
multiversion_edition: enterprise
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
large_distro_name: rhel62-large
|
||||
test_flags: >-
|
||||
--mongodSetParameters="{maxNumberOfTransactionOperationsInSingleOplogEntry: 2}"
|
||||
@ -9946,8 +9847,6 @@ buildvariants:
|
||||
multiversion_edition: enterprise
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
large_distro_name: rhel62-large
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -10025,8 +9924,6 @@ buildvariants:
|
||||
multiversion_edition: enterprise
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
large_distro_name: rhel62-large
|
||||
tasks:
|
||||
- name: compile_TG
|
||||
@ -10102,8 +9999,6 @@ buildvariants:
|
||||
multiversion_edition: enterprise
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: false
|
||||
large_distro_name: rhel62-large
|
||||
tasks:
|
||||
- name: compile_TG
|
||||
@ -10141,8 +10036,6 @@ buildvariants:
|
||||
# Mixing --cache and --gcov doesn't work correctly yet. See SERVER-11084
|
||||
timeout_secs: 10800 # 3 hour timeout
|
||||
use_scons_cache: false
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
- name: .aggregation !.unwind
|
||||
@ -10207,8 +10100,6 @@ buildvariants:
|
||||
packager_distro: rhel70
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10268,8 +10159,6 @@ buildvariants:
|
||||
packager_distro: rhel80
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10392,8 +10281,6 @@ buildvariants:
|
||||
resmoke_jobs_factor: 0.5 # Avoid starting too many mongod's
|
||||
compile_flags: MONGO_DISTMOD=ubuntu1604 --dbg=on --opt=on -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars
|
||||
scons_cache_scope: shared
|
||||
tooltags: ""
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_TG
|
||||
distros:
|
||||
@ -10425,8 +10312,6 @@ buildvariants:
|
||||
packager_distro: rhel62
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10474,8 +10359,6 @@ buildvariants:
|
||||
packager_distro: rhel70
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10525,8 +10408,6 @@ buildvariants:
|
||||
packager_distro: rhel80
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10593,8 +10474,6 @@ buildvariants:
|
||||
push_name: linux
|
||||
push_arch: ppc64le-enterprise-rhel71
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: rhel71
|
||||
multiversion_architecture: ppc64le
|
||||
multiversion_edition: enterprise
|
||||
@ -10652,8 +10531,6 @@ buildvariants:
|
||||
push_name: linux
|
||||
push_arch: s390x-enterprise-rhel72
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: rhel72
|
||||
multiversion_architecture: s390x
|
||||
multiversion_edition: enterprise
|
||||
@ -10707,8 +10584,6 @@ buildvariants:
|
||||
push_name: linux
|
||||
push_arch: s390x-enterprise-rhel67
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10756,8 +10631,6 @@ buildvariants:
|
||||
push_name: linux
|
||||
push_arch: s390x-rhel72
|
||||
repo_edition: org
|
||||
build_mongoreplay: true
|
||||
tooltags: "ssl"
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10784,8 +10657,6 @@ buildvariants:
|
||||
push_name: linux
|
||||
push_arch: s390x-rhel67
|
||||
repo_edition: org
|
||||
build_mongoreplay: true
|
||||
tooltags: "ssl"
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10823,8 +10694,6 @@ buildvariants:
|
||||
packager_distro: ubuntu1604
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10865,8 +10734,6 @@ buildvariants:
|
||||
compile_flags: --link-model=dynamic --allocator=system -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_v3_clang.vars --mobile-se=on
|
||||
scons_cache_scope: shared
|
||||
scons_cache_mode: all
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10901,8 +10768,6 @@ buildvariants:
|
||||
compile_flags: --link-model=dynamic --allocator=system -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_v3_clang.vars
|
||||
scons_cache_scope: shared
|
||||
scons_cache_mode: all
|
||||
tooltags: ""
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10933,8 +10798,6 @@ buildvariants:
|
||||
packager_distro: suse12
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -10976,8 +10839,6 @@ buildvariants:
|
||||
packager_arch: s390x
|
||||
packager_distro: suse12
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: suse12
|
||||
multiversion_architecture: s390x
|
||||
multiversion_edition: enterprise
|
||||
@ -11030,8 +10891,6 @@ buildvariants:
|
||||
packager_arch: s390x
|
||||
packager_distro: suse12
|
||||
repo_edition: org
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
multiversion_platform: suse12
|
||||
multiversion_architecture: s390x
|
||||
multiversion_edition: targeted
|
||||
@ -11065,8 +10924,6 @@ buildvariants:
|
||||
packager_distro: suse12
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11112,8 +10969,6 @@ buildvariants:
|
||||
packager_distro: suse15
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11151,8 +11006,6 @@ buildvariants:
|
||||
packager_distro: suse15
|
||||
repo_edition: org
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11207,9 +11060,7 @@ buildvariants:
|
||||
packager_arch: x86_64
|
||||
packager_distro: debian92
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
scons_cache_scope: shared
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11252,9 +11103,7 @@ buildvariants:
|
||||
packager_arch: x86_64
|
||||
packager_distro: debian92
|
||||
repo_edition: org
|
||||
tooltags: "ssl"
|
||||
scons_cache_scope: shared
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11309,9 +11158,7 @@ buildvariants:
|
||||
packager_arch: x86_64
|
||||
packager_distro: debian10
|
||||
repo_edition: enterprise
|
||||
tooltags: "ssl sasl gssapi"
|
||||
scons_cache_scope: shared
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11354,9 +11201,7 @@ buildvariants:
|
||||
packager_arch: x86_64
|
||||
packager_distro: debian10
|
||||
repo_edition: org
|
||||
tooltags: "ssl"
|
||||
scons_cache_scope: shared
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11401,8 +11246,6 @@ buildvariants:
|
||||
compile_flags: MONGO_DISTMOD=rhel62 -j$(grep -c ^processor /proc/cpuinfo) --dbg=off --opt=on --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars
|
||||
num_jobs_available: $(grep -c ^processor /proc/cpuinfo)
|
||||
scons_cache_scope: shared
|
||||
tooltags: ""
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11437,8 +11280,6 @@ buildvariants:
|
||||
multiversion_platform: rhel62
|
||||
multiversion_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
large_distro_name: rhel62-large
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -11505,8 +11346,6 @@ buildvariants:
|
||||
packager_distro: rhel62
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
jstestfuzz_num_generated_files: 40
|
||||
jstestfuzz_concurrent_num_files: 10
|
||||
target_resmoke_time: 10
|
||||
@ -11605,8 +11444,6 @@ buildvariants:
|
||||
packager_distro: rhel62
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
jstestfuzz_num_generated_files: 40
|
||||
jstestfuzz_concurrent_num_files: 10
|
||||
target_resmoke_time: 10
|
||||
@ -11699,8 +11536,6 @@ buildvariants:
|
||||
multiversion_platform: rhel62
|
||||
multiversion_edition: targeted
|
||||
scons_cache_scope: shared
|
||||
tooltags: ""
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11746,8 +11581,6 @@ buildvariants:
|
||||
compile_flags: --dbg=on --opt=on --ssl MONGO_DISTMOD=rhel71 -j$(echo "$(grep -c processor /proc/cpuinfo)/2" | bc) CCFLAGS="-mcpu=power8 -mtune=power8 -mcmodel=medium" --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars
|
||||
resmoke_jobs_factor: 0.25
|
||||
test_flags: --storageEngine=inMemory --excludeWithAnyTags=requires_persistence,requires_journaling
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11788,8 +11621,6 @@ buildvariants:
|
||||
compile_flags: --dbg=on --opt=on --ssl MONGO_DISTMOD=rhel72 -j3 CCFLAGS="-march=z196 -mtune=zEC12" --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars
|
||||
resmoke_jobs_max: 2
|
||||
test_flags: --storageEngine=inMemory --excludeWithAnyTags=requires_persistence,requires_journaling
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -11842,8 +11673,6 @@ buildvariants:
|
||||
multiversion_platform: ubuntu1804
|
||||
multiversion_edition: enterprise
|
||||
resmoke_jobs_factor: 0.3 # Avoid starting too many mongod's under ASAN build.
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
hang_analyzer_dump_core: false
|
||||
scons_cache_scope: shared
|
||||
test_flags: --excludeWithAnyTags=requires_fast_memory
|
||||
@ -11908,8 +11737,6 @@ buildvariants:
|
||||
multiversion_platform: ubuntu1804
|
||||
multiversion_edition: enterprise
|
||||
resmoke_jobs_factor: 0.3 # Avoid starting too many mongod's under ASAN build.
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
hang_analyzer_dump_core: false
|
||||
scons_cache_scope: shared
|
||||
target_resmoke_time: 15
|
||||
@ -11936,8 +11763,6 @@ buildvariants:
|
||||
multiversion_platform: ubuntu1804
|
||||
multiversion_edition: enterprise
|
||||
resmoke_jobs_factor: 0.3 # Avoid starting too many mongod's under UBSAN build.
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
scons_cache_scope: shared
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
@ -11998,8 +11823,6 @@ buildvariants:
|
||||
san_options: UBSAN_OPTIONS="print_stacktrace=1" LSAN_OPTIONS="suppressions=etc/lsan.suppressions:report_objects=1" ASAN_OPTIONS=detect_leaks=1:check_initialization_order=true:strict_init_order=true:abort_on_error=1:disable_coredump=0:handle_abort=1
|
||||
compile_flags: --variables-files=etc/scons/mongodbtoolchain_v3_clang.vars --dbg=on --opt=on --allocator=system --sanitize=undefined,address --ssl -j$(grep -c ^processor /proc/cpuinfo) --nostrip
|
||||
resmoke_jobs_factor: 0.3 # Avoid starting too many mongod's under {A,UB}SAN build.
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
hang_analyzer_dump_core: false
|
||||
scons_cache_scope: shared
|
||||
tasks:
|
||||
@ -12022,8 +11845,6 @@ buildvariants:
|
||||
san_options: UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1" LSAN_OPTIONS="suppressions=etc/lsan.suppressions:report_objects=1" ASAN_OPTIONS=detect_leaks=1:check_initialization_order=true:strict_init_order=true:abort_on_error=1:disable_coredump=0:handle_abort=1
|
||||
compile_flags: LINKFLAGS=-nostdlib++ LIBS=stdc++ --variables-files=etc/scons/mongodbtoolchain_v3_clang.vars --dbg=on --opt=on --allocator=system --sanitize=undefined,address,fuzzer --ssl -j$(grep -c ^processor /proc/cpuinfo) --nostrip
|
||||
resmoke_jobs_factor: 0.3 # Avoid starting too many mongod's under {A,UB}SAN build.
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: true
|
||||
hang_analyzer_dump_core: false
|
||||
scons_cache_scope: shared
|
||||
display_tasks:
|
||||
@ -12047,8 +11868,6 @@ buildvariants:
|
||||
multiversion_platform: ubuntu1804
|
||||
multiversion_edition: enterprise
|
||||
resmoke_jobs_factor: 0.3 # Avoid starting too many mongod's under {A,UB}SAN build.
|
||||
tooltags: "ssl"
|
||||
build_mongoreplay: false
|
||||
hang_analyzer_dump_core: false
|
||||
test_flags: |- # Use the ServiceExecutorAdaptive with a reasonable number of starting threads
|
||||
--serviceExecutor=adaptive \
|
||||
@ -12093,8 +11912,6 @@ buildvariants:
|
||||
compile_flags: MONGO_DISTMOD=ubuntu1604 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars --link-model=dynamic --allocator=system
|
||||
scons_cache_scope: shared
|
||||
scons_cache_mode: all
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
tasks:
|
||||
- name: compile_all_run_unittests_TG
|
||||
distros:
|
||||
@ -12136,8 +11953,6 @@ buildvariants:
|
||||
packager_distro: rhel62
|
||||
repo_edition: enterprise
|
||||
scons_cache_scope: shared
|
||||
tooltags: "ssl sasl gssapi"
|
||||
build_mongoreplay: true
|
||||
jstestfuzz_num_generated_files: 40
|
||||
jstestfuzz_concurrent_num_files: 10
|
||||
target_resmoke_time: 10
|
||||
|
||||
@ -134,21 +134,9 @@ fi
|
||||
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongo
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/mongo.1*
|
||||
%{_mandir}/man1/mongod.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
|
||||
%files server
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
@ -279,32 +279,13 @@ fi
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README
|
||||
%doc THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
%{_bindir}/bsondump
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongodecrypt
|
||||
%{_bindir}/mongoldap
|
||||
%{_bindir}/mongokerberos
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongotop
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/bsondump.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongoldap.1*
|
||||
%{_mandir}/man1/mongoreplay.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
%{_mandir}/man1/mongotop.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
|
||||
%files cryptd
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
@ -268,32 +268,13 @@ fi
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README
|
||||
%doc THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
%{_bindir}/bsondump
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongodecrypt
|
||||
%{_bindir}/mongoldap
|
||||
%{_bindir}/mongokerberos
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongotop
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/bsondump.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongoldap.1*
|
||||
%{_mandir}/man1/mongoreplay.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
%{_mandir}/man1/mongotop.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
|
||||
%files cryptd
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
@ -272,32 +272,13 @@ fi
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README
|
||||
%doc THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
%{_bindir}/bsondump
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongodecrypt
|
||||
%{_bindir}/mongoldap
|
||||
%{_bindir}/mongokerberos
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongotop
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/bsondump.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongoldap.1*
|
||||
%{_mandir}/man1/mongoreplay.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
%{_mandir}/man1/mongotop.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
|
||||
%files cryptd
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
@ -281,32 +281,13 @@ fi
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README
|
||||
%doc THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
%{_bindir}/bsondump
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongodecrypt
|
||||
%{_bindir}/mongoldap
|
||||
%{_bindir}/mongokerberos
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongotop
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/bsondump.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongoldap.1*
|
||||
%{_mandir}/man1/mongoreplay.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
%{_mandir}/man1/mongotop.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
|
||||
%files cryptd
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
@ -250,29 +250,10 @@ fi
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README
|
||||
%doc THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
%{_bindir}/bsondump
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongotop
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/bsondump.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongoldap.1*
|
||||
%{_mandir}/man1/mongoreplay.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
%{_mandir}/man1/mongotop.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
|
||||
%changelog
|
||||
* Thu Dec 19 2013 Ernie Hershey <ernie.hershey@mongodb.com>
|
||||
|
||||
@ -238,29 +238,10 @@ fi
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README
|
||||
%doc THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
%{_bindir}/bsondump
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongotop
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/bsondump.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongoldap.1*
|
||||
%{_mandir}/man1/mongoreplay.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
%{_mandir}/man1/mongotop.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
|
||||
%changelog
|
||||
* Thu Dec 19 2013 Ernie Hershey <ernie.hershey@mongodb.com>
|
||||
|
||||
@ -240,29 +240,10 @@ fi
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README
|
||||
%doc THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
%{_bindir}/bsondump
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongotop
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/bsondump.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongoldap.1*
|
||||
%{_mandir}/man1/mongoreplay.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
%{_mandir}/man1/mongotop.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
|
||||
%changelog
|
||||
* Mon Oct 10 2016 Sam Kleinman <sam@mongodb.com>
|
||||
|
||||
@ -252,29 +252,10 @@ fi
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README
|
||||
%doc THIRD-PARTY-NOTICES.gotools
|
||||
|
||||
%{_bindir}/bsondump
|
||||
%{_bindir}/install_compass
|
||||
%{_bindir}/mongodump
|
||||
%{_bindir}/mongoexport
|
||||
%{_bindir}/mongofiles
|
||||
%{_bindir}/mongoimport
|
||||
%{_bindir}/mongorestore
|
||||
%{_bindir}/mongotop
|
||||
%{_bindir}/mongostat
|
||||
|
||||
%{_mandir}/man1/bsondump.1*
|
||||
%{_mandir}/man1/mongodump.1*
|
||||
%{_mandir}/man1/mongoexport.1*
|
||||
%{_mandir}/man1/mongofiles.1*
|
||||
%{_mandir}/man1/mongoimport.1*
|
||||
%{_mandir}/man1/mongoldap.1*
|
||||
%{_mandir}/man1/mongoreplay.1*
|
||||
%{_mandir}/man1/mongorestore.1*
|
||||
%{_mandir}/man1/mongotop.1*
|
||||
%{_mandir}/man1/mongostat.1*
|
||||
|
||||
%changelog
|
||||
* Mon Oct 10 2016 Sam Kleinman <sam@mongodb.com>
|
||||
|
||||
@ -489,9 +489,6 @@ hygienic = get_option('install-mode') == 'hygienic'
|
||||
if not hygienic:
|
||||
env.Default(env.Install('#/', mongod))
|
||||
|
||||
# tools
|
||||
rewrittenTools = [ "mongodump", "mongorestore", "mongoexport", "mongoimport", "mongostat", "mongotop", "bsondump", "mongofiles" ]
|
||||
|
||||
if env.TargetOSIs('windows'):
|
||||
generatedServerManifest = env.Substfile(
|
||||
's/server.manifest.in',
|
||||
@ -756,52 +753,6 @@ def installBinary( e, name ):
|
||||
if env.TargetOSIs('posix'):
|
||||
e.AddPostAction( inst, 'chmod 755 $TARGET' )
|
||||
|
||||
def installExternalBinary( e, name_str ):
|
||||
name = env.File("#/%s" % add_exe(name_str))
|
||||
if not name.isfile():
|
||||
env.FatalError("ERROR: external binary not found: {0}", name)
|
||||
|
||||
if hygienic:
|
||||
env.AutoInstall(
|
||||
target='$PREFIX_BINDIR',
|
||||
source=[
|
||||
name
|
||||
],
|
||||
AIB_COMPONENT='tools',
|
||||
AIB_COMPONENTS_EXTRA=['dist'],
|
||||
AIB_ROLE='runtime',
|
||||
)
|
||||
return
|
||||
|
||||
distBinaries.append(name)
|
||||
|
||||
inst = e.Install( "$DESTDIR/bin", name )
|
||||
|
||||
if env.TargetOSIs('posix'):
|
||||
e.AddPostAction( inst, 'chmod 755 $TARGET' )
|
||||
|
||||
# "--use-new-tools" adds dependencies for rewritten (Go) tools
|
||||
# It is required for "dist" but optional for "install"
|
||||
if has_option("use-new-tools"):
|
||||
|
||||
if hygienic:
|
||||
env.AutoInstall(
|
||||
target='$DESTDIR',
|
||||
source=env.File('#/src/mongo-tools/distsrc/THIRD-PARTY-NOTICES.gotools'),
|
||||
AIB_COMPONENT='tools',
|
||||
AIB_COMPONENTS_EXTRA=['dist'],
|
||||
AIB_ROLE='base',
|
||||
)
|
||||
else:
|
||||
env.Append(MODULE_BANNERS=[env.File('#/src/mongo-tools/distsrc/THIRD-PARTY-NOTICES.gotools')])
|
||||
|
||||
toolsRoot = "src/mongo-tools"
|
||||
|
||||
for t in rewrittenTools:
|
||||
installExternalBinary(env, "%s/%s" % (toolsRoot, t))
|
||||
if has_option("build-mongoreplay") and get_option("build-mongoreplay") == "true":
|
||||
installExternalBinary(env, "%s/%s" % (toolsRoot, "mongoreplay"))
|
||||
|
||||
# legacy tools
|
||||
if not hygienic:
|
||||
env.Alias("tools", "#/" + add_exe("mongobridge"))
|
||||
@ -918,9 +869,7 @@ if env.TargetOSIs('posix'):
|
||||
env.AddPostAction( compass_script_installer, 'chmod 755 $TARGET' )
|
||||
env.AddPostAction( compass_installer, 'chmod 755 $TARGET' )
|
||||
|
||||
# "dist" target is valid only when --use-new-tools is specified
|
||||
# Attempts to build release artifacts without tools must fail
|
||||
if has_option("use-new-tools") and not hygienic:
|
||||
if not hygienic:
|
||||
server_archive = env.Command(
|
||||
target='#/${SERVER_ARCHIVE}',
|
||||
source=['#buildscripts/make_archive.py'] + env["MODULE_BANNERS"] + env["ARCHIVE_ADDITIONS"] + distBinaries,
|
||||
@ -933,8 +882,6 @@ if has_option("use-new-tools") and not hygienic:
|
||||
'--transform $BUILD_DIR/mongo/stripped/db/modules/enterprise=$SERVER_DIST_BASENAME/bin',
|
||||
'--transform $BUILD_DIR/mongo/stripped=$SERVER_DIST_BASENAME/bin',
|
||||
'--transform $BUILD_DIR/mongo=$SERVER_DIST_BASENAME/bin',
|
||||
'--transform $BUILD_DIR/mongo/stripped/src/mongo-tools=$SERVER_DIST_BASENAME/bin',
|
||||
'--transform src/mongo-tools=$SERVER_DIST_BASENAME/bin',
|
||||
'--transform src/mongo/installer/compass=$SERVER_DIST_BASENAME/bin',
|
||||
'${TEMPFILE(SOURCES[1:])}'
|
||||
],
|
||||
@ -962,12 +909,6 @@ if has_option("use-new-tools") and not hygienic:
|
||||
env.Alias('dist-debugsymbols', debug_symbols_dist)
|
||||
env.NoCache(debug_symbols_dist)
|
||||
|
||||
elif not hygienic:
|
||||
def failDist(env, target, source):
|
||||
env.FatalError("ERROR: 'dist' target only valid with --use-new-tools.")
|
||||
env.Alias("dist", [], [ failDist ] )
|
||||
env.AlwaysBuild("dist")
|
||||
|
||||
#final alias
|
||||
if not hygienic:
|
||||
env.Alias( "install", "$DESTDIR" )
|
||||
|
||||
@ -44,10 +44,7 @@ sourcesList = [ "BinaryFragment.wxs",
|
||||
|
||||
# Need to do this in order to get scons to translate path separators into native format
|
||||
buildDir = env.Dir("$BUILD_DIR").path
|
||||
if has_option("use-new-tools"):
|
||||
toolBuildDir = "src\mongo-tools"
|
||||
else:
|
||||
toolBuildDir = buildDir + r'\mongo'
|
||||
toolBuildDir = buildDir + r'\mongo'
|
||||
|
||||
enterprisebase = 'src\mongo\db\modules\enterprise'
|
||||
enterpriseToolBuildDir = buildDir + r'\mongo\db\modules\enterprise'
|
||||
@ -122,7 +119,6 @@ env.Command(objects,
|
||||
' -dLicenseSource=distsrc'
|
||||
r' -dEnterpriseBase=' + enterprisebase + '\\'
|
||||
' -dBinarySource=' + buildDir + r'\mongo'
|
||||
' -dToolBinarySource=' + toolBuildDir +
|
||||
' -dEnterpriseToolBinarySource=' + enterpriseToolBuildDir +
|
||||
' -dMergeModulesBasePath=' + "\"${MSVS['VCREDISTMERGEMODULEPATH']}\"" +
|
||||
' -dMergeModuleFileCRT=' + env.GetMergeModuleNameForFeature('CRT') +
|
||||
|
||||
@ -2,10 +2,6 @@
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
||||
<Fragment>
|
||||
<DirectoryRef Id="BIN">
|
||||
<Component Id="c_bsondump" Guid="DEEA45CA-5175-453B-9D0B-6168B4C0C891">
|
||||
<File Id="f_bsondump" Name="bsondump.exe" Source="$(var.ToolBinarySource)\bsondump.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="InstallCompass" Guid="FDB7B7C4-B78F-4A85-8F98-E8E49F6027B2">
|
||||
<File Id="InstallCompassScript" Name="InstallCompass.ps1" Source="$(var.CompassDir)\Install-Compass.ps1" />
|
||||
</Component>
|
||||
@ -51,26 +47,6 @@
|
||||
<File Id="f_mongodCfg" Name="mongod.cfg" Source="$(var.ProjectDir)mongod.yaml"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="c_mongodump" Guid="FFE32884-ACAD-4EC6-AF84-6BC94F55819E">
|
||||
<File Id="f_mongodump" Name="mongodump.exe" Source="$(var.ToolBinarySource)\mongodump.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="c_mongoexport" Guid="FD5FFDE2-53A1-45F3-9CCA-3AC311DF647C">
|
||||
<File Id="f_mongoexport" Name="mongoexport.exe" Source="$(var.ToolBinarySource)\mongoexport.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="c_mongofiles" Guid="CF8696D3-92B4-4CB9-B4D0-16155D726FE6">
|
||||
<File Id="f_mongofiles" Name="mongofiles.exe" Source="$(var.ToolBinarySource)\mongofiles.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="c_mongoimport" Guid="A4C06F69-2BB3-4068-A7E7-25347CCF01DE">
|
||||
<File Id="f_mongoimport" Name="mongoimport.exe" Source="$(var.ToolBinarySource)\mongoimport.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="c_mongorestore" Guid="72A16D11-242E-4368-93C9-5F6162C548FC">
|
||||
<File Id="f_mongorestore" Name="mongorestore.exe" Source="$(var.ToolBinarySource)\mongorestore.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="c_mongos" Guid="3CA63864-9FA0-4DAE-A664-2BE9A157FB60">
|
||||
<File Id="f_mongos" Name="mongos.exe" Source="$(var.BinarySource)\mongos.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
@ -79,14 +55,6 @@
|
||||
<File Id="f_mongosPdb" Name="mongos.pdb" Source="$(var.BinarySource)\mongos.pdb"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="c_mongostat" Guid="0A881C85-AB39-4247-BADD-C8191F2FFF0C">
|
||||
<File Id="f_mongostat" Name="mongostat.exe" Source="$(var.ToolBinarySource)\mongostat.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<Component Id="c_mongotop" Guid="616C562D-0504-4F2D-A6E7-CC21A58F9F81">
|
||||
<File Id="f_mongotop" Name="mongotop.exe" Source="$(var.ToolBinarySource)\mongotop.exe"
|
||||
DiskId ="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
<?if $(var.Edition) = Enterprise ?>
|
||||
<Component Id="c_mongodecrypt" Guid="B81B0CED-8CAD-4A92-BABC-7C473BBFF44E">
|
||||
<File Id="f_mongodecrypt" Name="mongodecrypt.exe" Source="$(var.EnterpriseToolBinarySource)\mongodecrypt.exe"
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Fragment>
|
||||
<?if $(var.Edition) = Enterprise ?>
|
||||
<WixVariable Id="MiscToolsDesc" Value="Miscellaneous MongoDB tools (bsondump, mongodecrypt, mongofiles, mongoldap)" />
|
||||
<WixVariable Id="MiscToolsDesc" Value="Miscellaneous MongoDB tools (mongodecrypt, mongoldap)" />
|
||||
<?else?>
|
||||
<WixVariable Id="MiscToolsDesc" Value="Miscellaneous MongoDB tools (bsondump, mongofiles)" />
|
||||
<WixVariable Id="MiscToolsDesc" Value="Miscellaneous MongoDB tools" />
|
||||
<?endif?>
|
||||
<FeatureGroup Id="fg_MongoDBAll">
|
||||
<Feature Id="ProductFeature"
|
||||
@ -59,28 +59,6 @@
|
||||
<ComponentGroupRef Id="cg_EnterpriseBase" />
|
||||
<?endif ?>
|
||||
</Feature>
|
||||
<Feature Id="MonitoringTools"
|
||||
Title ="Monitoring Tools"
|
||||
Description="MongoDB monitoring tools (mongostat, mongotop)"
|
||||
Level ="1">
|
||||
<ComponentRef Id="c_mongostat"/>
|
||||
<ComponentRef Id="c_mongotop"/>
|
||||
<?if $(var.Edition) = Enterprise ?>
|
||||
<ComponentGroupRef Id="cg_EnterpriseBase" />
|
||||
<?endif ?>
|
||||
</Feature>
|
||||
<Feature Id="ImportExportTools"
|
||||
Title ="Import/Export Tools"
|
||||
Description="MongoDB import/export tools (mongodump/mongorestore and mongoexport/mongoimport)"
|
||||
Level ="1">
|
||||
<ComponentRef Id="c_mongodump"/>
|
||||
<ComponentRef Id="c_mongorestore"/>
|
||||
<ComponentRef Id="c_mongoexport"/>
|
||||
<ComponentRef Id="c_mongoimport"/>
|
||||
<?if $(var.Edition) = Enterprise ?>
|
||||
<ComponentGroupRef Id="cg_EnterpriseBase" />
|
||||
<?endif ?>
|
||||
</Feature>
|
||||
<Feature Id="Router"
|
||||
Title ="Router"
|
||||
Description="The MongoDB Router (mongos)"
|
||||
@ -95,8 +73,6 @@
|
||||
Title ="Miscellaneous Tools"
|
||||
Description="!(wix.MiscToolsDesc)"
|
||||
Level ="1">
|
||||
<ComponentRef Id="c_bsondump"/>
|
||||
<ComponentRef Id="c_mongofiles"/>
|
||||
<?if $(var.Edition) = Enterprise ?>
|
||||
<ComponentGroupRef Id="cg_EnterpriseBase" />
|
||||
<ComponentRef Id="c_mongodecrypt"/>
|
||||
|
||||
@ -28,10 +28,6 @@
|
||||
</Component>
|
||||
<?endif?>
|
||||
|
||||
<Component Id="c_ThirdpartyGotools" Guid="7A83B4DF-0D78-4594-8912-30310A3BAEEB">
|
||||
<File Id="f_ThirdpartyGotools" Name="THIRD-PARTY-NOTICES.gotools" Source="$(var.ToolBinarySource)\distsrc\THIRD-PARTY-NOTICES.gotools"
|
||||
DiskId ="1" KeyPath="yes" />
|
||||
</Component>
|
||||
<Component Id="c_Readme" Guid="12C17EA1-075C-4A1D-9554-F3B5A2A94874">
|
||||
<File Id="f_Readme" Name="README" Source="$(var.LicenseSource)\README"
|
||||
DiskId ="1" />
|
||||
@ -54,7 +50,6 @@
|
||||
<?if $(var.Edition) = Enterprise ?>
|
||||
<ComponentRef Id="c_ThirdpartyEnterprise"/>
|
||||
<?endif?>
|
||||
<ComponentRef Id="c_ThirdpartyGotools"/>
|
||||
<ComponentRef Id="c_License"/>
|
||||
<ComponentRef Id="c_InstallKey"/>
|
||||
<ComponentRef Id="c_MPL2"/>
|
||||
|
||||
@ -986,83 +986,6 @@ MongoRunner.stopMongod = function(conn, signal, opts, waitpid) {
|
||||
|
||||
MongoRunner.stopMongos = MongoRunner.stopMongod;
|
||||
|
||||
/**
|
||||
* Starts an instance of the specified mongo tool
|
||||
*
|
||||
* @param {String} binaryName - The name of the tool to run.
|
||||
* @param {Object} [opts={}] - Options of the form --flag or --key=value to pass to the tool.
|
||||
* @param {string} [opts.binVersion] - The version of the tool to run.
|
||||
*
|
||||
* @param {...string} positionalArgs - Positional arguments to pass to the tool after all
|
||||
* options have been specified. For example,
|
||||
* MongoRunner.runMongoTool("executable", {key: value}, arg1, arg2) would invoke
|
||||
* ./executable --key value arg1 arg2.
|
||||
*
|
||||
* @see MongoRunner.arrOptions
|
||||
*/
|
||||
MongoRunner.runMongoTool = function(binaryName, opts, ...positionalArgs) {
|
||||
var opts = opts || {};
|
||||
|
||||
// Normalize and get the binary version to use
|
||||
if (opts.binVersion instanceof MongoRunner.versionIterator.iterator) {
|
||||
// Advance the version iterator so that subsequent calls to MongoRunner.runMongoTool()
|
||||
// use the next version in the list.
|
||||
const iterator = opts.binVersion;
|
||||
opts.binVersion = iterator.current();
|
||||
iterator.advance();
|
||||
}
|
||||
opts.binVersion = MongoRunner.getBinVersionFor(opts.binVersion);
|
||||
|
||||
// Recent versions of the mongo tools support a --dialTimeout flag to set for how
|
||||
// long they retry connecting to a mongod or mongos process. We have them retry
|
||||
// connecting for up to 30 seconds to handle when the tests are run on a
|
||||
// resource-constrained host machine.
|
||||
//
|
||||
// The bsondump tool doesn't accept the --dialTimeout flag because it doesn't connect to a
|
||||
// mongod or mongos process.
|
||||
if (!opts.hasOwnProperty('dialTimeout') && binaryName !== 'bsondump' &&
|
||||
_toolVersionSupportsDialTimeout(opts.binVersion)) {
|
||||
opts['dialTimeout'] = '30';
|
||||
}
|
||||
|
||||
// Convert 'opts' into an array of arguments.
|
||||
var argsArray = MongoRunner.arrOptions(binaryName, opts);
|
||||
|
||||
// Append any positional arguments that were specified.
|
||||
argsArray.push(...positionalArgs);
|
||||
|
||||
return runMongoProgram.apply(null, argsArray);
|
||||
};
|
||||
|
||||
var _toolVersionSupportsDialTimeout = function(version) {
|
||||
if (version === "latest" || version === "") {
|
||||
return true;
|
||||
}
|
||||
var versionParts =
|
||||
convertVersionStringToArray(version).slice(0, 3).map(part => parseInt(part, 10));
|
||||
if (versionParts.length === 2) {
|
||||
versionParts.push(Infinity);
|
||||
}
|
||||
|
||||
if (versionParts[0] > 3 || (versionParts[0] === 3 && versionParts[1] > 3)) {
|
||||
// The --dialTimeout command line option is supported by the tools
|
||||
// with a major version newer than 3.3.
|
||||
return true;
|
||||
}
|
||||
|
||||
for (var supportedVersion of ["3.3.4", "3.2.5", "3.0.12"]) {
|
||||
var supportedVersionParts = convertVersionStringToArray(supportedVersion)
|
||||
.slice(0, 3)
|
||||
.map(part => parseInt(part, 10));
|
||||
if (versionParts[0] === supportedVersionParts[0] &&
|
||||
versionParts[1] === supportedVersionParts[1] &&
|
||||
versionParts[2] >= supportedVersionParts[2]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
// Given a test name figures out a directory for that test to use for dump files and makes sure
|
||||
// that directory exists and is empty.
|
||||
MongoRunner.getAndPrepareDumpDirectory = function(testName) {
|
||||
@ -1403,7 +1326,7 @@ runMongoProgram = function() {
|
||||
var progName = args[0];
|
||||
|
||||
// The bsondump tool doesn't support these auth related command line flags.
|
||||
if (jsTestOptions().auth && progName != 'mongod' && progName != 'bsondump') {
|
||||
if (jsTestOptions().auth && progName != 'mongod') {
|
||||
args = args.slice(1);
|
||||
args.unshift(progName,
|
||||
'-u',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user