mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Upgrading MMS agent from 1.5.6 to 1.5.7.
This commit is contained in:
parent
31d6af1b6e
commit
dacf368cbc
10 changed files with 65 additions and 14 deletions
57
vendor/mms-agent/WINDOWS.txt
vendored
Executable file
57
vendor/mms-agent/WINDOWS.txt
vendored
Executable file
|
@ -0,0 +1,57 @@
|
|||
Contents
|
||||
------------
|
||||
* README.txt
|
||||
* mongommsinstall.bat
|
||||
* mongommstinstall.ps1
|
||||
* srvany.exe
|
||||
|
||||
Prerequisites
|
||||
------------
|
||||
* Expects a MMS/PyMongo compatible python version to be installed
|
||||
* Expects pymongo to be installed
|
||||
* Powershell version 2.0 (for windows service installation)
|
||||
* Powershell script execution to be turned on
|
||||
|
||||
Installation
|
||||
------------
|
||||
* The following instructions are to run MMS as a windows service
|
||||
* More information can be found at https://mms.10gen.com/help/install.html#installing-mms-on-windows
|
||||
|
||||
Install Prerequisites
|
||||
---------------------
|
||||
* Install python 2.7.x using the Windows Installer. 64 bit installer is preferred.
|
||||
e.g. http://www.python.org/ftp/python/2.7.2/python-2.7.2.amd64.msi
|
||||
* Install latest version of pymongo using the Windows Installer from pypi. Ensure
|
||||
you pick the installer that corresponds to your python version and the type (32 bit or 64 bit).
|
||||
http://pypi.python.org/pypi/pymongo/
|
||||
|
||||
Install Powershell 2.0
|
||||
----------------------
|
||||
* If you do not have powershell 2.0 installed you would need to install it from http://support.microsoft.com/kb/968929.
|
||||
|
||||
Enable Powershell Script Execution
|
||||
----------------------------------
|
||||
* Open the Windows Powershell by right-clicking its icon in the Start bar and selecting Run as Administrator
|
||||
* Type `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned` and agree when prompted about changing the policy
|
||||
|
||||
Specifying a Proxy Server
|
||||
-------------------------
|
||||
If the MMS agent needs a proxy server to connect outside, specify it in the HTTPS_PROXY environment variable
|
||||
as http://proxyservername:port
|
||||
|
||||
Sevice Installation
|
||||
-------------------
|
||||
* The script reads python path from windows registry if not specified on command line
|
||||
* If multiple python installations are present edit the bat file to specify the path of the python install to work
|
||||
* Run mongommsinstall.bat from an administrator command window
|
||||
* This will install the windows service and start it
|
||||
* If you stop the windows service, the agent will stop
|
||||
|
||||
Uninstall
|
||||
---------
|
||||
- Stop the "MongoDB MMS" windows service
|
||||
- Run "sc delete mongomms"
|
||||
|
||||
More Information
|
||||
----------------
|
||||
- MMS Help https://mms.10gen.com/help/
|
2
vendor/mms-agent/agentProcess.py
vendored
2
vendor/mms-agent/agentProcess.py
vendored
|
@ -21,7 +21,7 @@ import os, sys, platform, time, threading, socket, traceback, random, hashlib, t
|
|||
|
||||
socket.setdefaulttimeout( _settings.socket_timeout )
|
||||
|
||||
_agentVersion = "1.5.6"
|
||||
_agentVersion = "1.5.7"
|
||||
|
||||
_pymongoVersion = pymongo.version
|
||||
|
||||
|
|
2
vendor/mms-agent/blockingStats.py
vendored
2
vendor/mms-agent/blockingStats.py
vendored
|
@ -8,7 +8,7 @@ import threading, time, datetime, pymongo, traceback, socket, warnings
|
|||
|
||||
warnings.simplefilter( 'ignore', DeprecationWarning )
|
||||
|
||||
blockingStatsAgentVersion = "1.5.6"
|
||||
blockingStatsAgentVersion = "1.5.7"
|
||||
|
||||
class BlockingMongoStatsThread( threading.Thread ):
|
||||
""" Pull the blocking data from the various hosts. """
|
||||
|
|
2
vendor/mms-agent/confPull.py
vendored
2
vendor/mms-agent/confPull.py
vendored
|
@ -8,7 +8,7 @@ import threading, time, urllib2, traceback
|
|||
|
||||
import bson
|
||||
|
||||
confPullAgentVersion = "1.5.6"
|
||||
confPullAgentVersion = "1.5.7"
|
||||
|
||||
class ConfPullThread( threading.Thread ):
|
||||
""" The remote configuration pull thread object """
|
||||
|
|
2
vendor/mms-agent/getLogs.py
vendored
2
vendor/mms-agent/getLogs.py
vendored
|
@ -8,7 +8,7 @@ import threading, time, traceback, warnings, sets
|
|||
|
||||
warnings.simplefilter( 'ignore', DeprecationWarning )
|
||||
|
||||
getLogsAgentVersion = "1.5.6"
|
||||
getLogsAgentVersion = "1.5.7"
|
||||
|
||||
class GetLogsThread( threading.Thread ):
|
||||
""" When enabled pull log data from hosts. """
|
||||
|
|
2
vendor/mms-agent/mmsAgent.py
vendored
2
vendor/mms-agent/mmsAgent.py
vendored
|
@ -13,7 +13,7 @@ import bson
|
|||
# Python
|
||||
import threading, urllib, urllib2, socket, zlib, time, sets, re, gc
|
||||
|
||||
mmsAgentVersion = "1.5.6"
|
||||
mmsAgentVersion = "1.5.7"
|
||||
|
||||
class MmsAgent( object ):
|
||||
""" The mms agent object """
|
||||
|
|
1
vendor/mms-agent/mongommsinstall.bat
vendored
Executable file
1
vendor/mms-agent/mongommsinstall.bat
vendored
Executable file
|
@ -0,0 +1 @@
|
|||
powershell .\mongommsinstall.ps1
|
2
vendor/mms-agent/munin.py
vendored
2
vendor/mms-agent/munin.py
vendored
|
@ -7,7 +7,7 @@ This is a label on a mattress. Do not modify this file!
|
|||
# Python
|
||||
import socket, threading, time
|
||||
|
||||
muninAgentVersion = "1.5.6"
|
||||
muninAgentVersion = "1.5.7"
|
||||
|
||||
def containsStr( val, query ):
|
||||
""" Returns true if the value is contained in the string """
|
||||
|
|
9
vendor/mms-agent/nonBlockingStats.py
vendored
9
vendor/mms-agent/nonBlockingStats.py
vendored
|
@ -8,7 +8,7 @@ import threading, time, pymongo, traceback, warnings, datetime
|
|||
|
||||
warnings.simplefilter( 'ignore', DeprecationWarning )
|
||||
|
||||
nonBlockingStatsAgentVersion = "1.5.6"
|
||||
nonBlockingStatsAgentVersion = "1.5.7"
|
||||
|
||||
class NonBlockingMongoStatsThread( threading.Thread ):
|
||||
""" Pull the non-blocking data from the various hosts. """
|
||||
|
@ -167,13 +167,6 @@ class NonBlockingMongoStatsThread( threading.Thread ):
|
|||
except Exception, e:
|
||||
self.mmsAgent.handleOperationFailure( self.hostKey, 'getShardVersion.mdbfoo.foo', e )
|
||||
|
||||
# Run the writeBacksQueued command
|
||||
if 'msg' not in isMaster:
|
||||
try:
|
||||
root['writeBacksQueued'] = monitorConn.admin.command( 'writeBacksQueued' )
|
||||
except Exception, e:
|
||||
self.mmsAgent.handleOperationFailure( self.hostKey, 'writeBacksQueued', e )
|
||||
|
||||
# Check to see if this is a mongod host
|
||||
try:
|
||||
if isMaster['ismaster'] and isMaster.get('msg', '') == 'isdbgrid':
|
||||
|
|
BIN
vendor/mms-agent/srvany.exe
vendored
Executable file
BIN
vendor/mms-agent/srvany.exe
vendored
Executable file
Binary file not shown.
Loading…
Add table
Reference in a new issue