[DOCS-14036] Investigate changes in SERVER-46958: Create server parameter shutdownTimeoutMillisForSignaledShutdown on mongos Created: 04/Dec/20  Updated: 13/Nov/23  Resolved: 15/Jan/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.7.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jason Price
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-46958 Create server parameter shutdownTimeo... Closed
Participants:
Days since reply: 3 years, 3 weeks, 5 days ago
Epic Link: DOCSP-9747
Story Points: 3

 Description   

Description

Downstream Change Summary

mongosShutdownTimeoutMillisForSignaledShutdown controls the time taken by quiesce mode for a mongos SIGTERM shutdown. The default value is 15000.

Description of Linked Ticket

Introduce a server parameter shutdownTimeoutMillisForSignaledShutdown on mongos. This controls the combined time taken by quiesce mode for SIGTERM shutdown. The default value is 15000. Set this to 100 in tests.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 15/Jan/21 ]

Author:

{'name': 'Jason Price', 'email': 'jason.price@mongodb.com', 'username': 'jason-price-mongodb'}

Message: DOCS-14036 New server parameter shutdownTimeoutMillisForSignaledShutdown
Branch: v5.0
https://github.com/mongodb/docs/commit/f6622913cbc010a0e29c8e63353a4a36b176f7f1

Comment by Jason Price [ 11/Jan/21 ]

Created test sharded cluster:

[jason.price@Jasons-MBP:dist-test/bin] $ mlaunch init --replicaset --sharded tic tac --port 27000 --binarypath /Users/jason.price/Databases/dist-test/bin
launching: "/Users/jason.price/Databases/dist-test/bin/mongod" on port 27001
launching: "/Users/jason.price/Databases/dist-test/bin/mongod" on port 27002
launching: "/Users/jason.price/Databases/dist-test/bin/mongod" on port 27003
launching: "/Users/jason.price/Databases/dist-test/bin/mongod" on port 27004
launching: "/Users/jason.price/Databases/dist-test/bin/mongod" on port 27005
launching: "/Users/jason.price/Databases/dist-test/bin/mongod" on port 27006
launching: config server on port 27007
replica set 'configRepl' initialized.
replica set 'tic' initialized.
replica set 'tac' initialized.
launching: /Users/jason.price/Databases/dist-test/bin/mongos on port 27000

Verified existence of new parameter in new version:

[jason.price@Jasons-MBP:dist-test/bin] $ ./mongos --version                                 
mongos version v4.9.0-alpha-21-gb985dd9
Build Info: {
    "version": "4.9.0-alpha-21-gb985dd9",
    "gitVersion": "b985dd96b69bcc8f64580f7270d5caf02def3115",
    "modules": [
        "enterprise"
    ],
    "allocator": "system",
    "environment": {
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}
 
MongoDB Enterprise tic:PRIMARY> db.adminCommand( { setParameter: 1, mongosShutdownTimeoutMillisForSignaledShutdown: 200 } )
{
	"was" : 15000,
	"ok" : 1,
	"$gleStats" : {
		"lastOpTime" : Timestamp(0, 0),
		"electionId" : ObjectId("7fffffff0000000000000001")
	},
	"lastCommittedOpTime" : Timestamp(1610392972, 24),
	"$configServerState" : {
		"opTime" : {
			"ts" : Timestamp(1610392972, 19),
			"t" : NumberLong(1)
		}
	},
	"$clusterTime" : {
		"clusterTime" : Timestamp(1610392972, 24),
		"signature" : {
			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
			"keyId" : NumberLong(0)
		}
	},
	"operationTime" : Timestamp(1610392972, 24)

Generated at Thu Feb 08 08:09:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.