wiredtiger-tickets

0.0.2 • Public • Published

wiredtiger-tickets

Build Status

npm version

Get the number of read/write tickets available to the WiredTiger storage engine.

Read/Write tickets represent the number of concurrent read/write operations allowed into the storage engine.
When this value reaches zero new read/write requests may queue until a read/write ticket becomes available.
Read more on MongoDB

Install

$ npm install --save wiredtiger-tickets

Usage

var wrTickets = require('wiredtiger-tickets');
wrTickets('mongodb://localhost:27017/', (err, data) => {
    console.log(data)
    //=> { read: 128, write: 128 }
})

API

wiredtiger-tickets(url)

url(required)

Type: string
Default: null

Give it a mongodb URI

License

MIT © Nikolay Spiridonov

Package Sidebar

Install

npm i wiredtiger-tickets

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • sohje