• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

NodeBB Scaling makes Mongodb Dead

Scheduled Pinned Locked Moved Technical Support
3 Posts 2 Posters 686 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DkD Offline
    DkD Offline
    Dk
    wrote on last edited by
    #1

    i use this configure
    https://docs.nodebb.org/configuring/scaling/
    but after a few days nodebb dead
    so i check service, found mongodb not running
    the mongod log last line show nodebb get lots of post

    2018-08-28T14:40:05.667+0800 I COMMAND  [conn28] command nodebb.objects command: getMore { getMore: 24796725858, collection: "objects", batchSize: 1000, lsid: { id: UUID("xxx") }, $readPreference: { mode: "secondaryPreferred" }, $db: "no
    debb" } originatingCommand: { find: "objects", filter: { _key: { $in: [ "post:63437".......... "post:98592" ] } }, projection: { _id: 0 }, returnKey: false, showRecordId: false, lsid: { id: UUID("xxx") }, $db: "nodebb" } planSummary: IXSCAN { _key: 1, value: -1 } cursorid:24796725858 keysExamined:840 docsExamined:424 cursorExhausted:1 numYields:10 nreturned:424 reslen:163097 locks:{ Global: { acquireCount: { r: 11 } }, Database: { acquireCount: { r: 11 } }, Collection: { acquireCount: { r: 11 } } } protocol:op_query 242ms
    

    the mongod config is from apt source

    i want know what makes mongodb stop, not set daemon let it restart frequently

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    Did you check /var/log/syslog to see if it was killed because of insufficient memory?

    DkD 1 Reply Last reply
    0
  • DkD Offline
    DkD Offline
    Dk
    replied to <baris> on last edited by
    #3

    @baris only get this
    Aug 28 16:39:27 hostname mongod[7590]: 2018-08-28T16:39:27.604+0800 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'

    # free -m
                  total        used        free      shared  buff/cache   available
    Mem:           1735        1296         102           3         336         231
    Swap:          1019         287         731
    
    #/etc/mongod.conf
    storage:
      dbPath: /var/lib/mongodb
      journal:
        enabled: true
    
    systemLog:
      destination: file
      logAppend: true
      path: /var/log/mongodb/mongod.log
    
    net:
      port: 27017
      bindIp: 127.0.0.1
    
    processManagement:
      timeZoneInfo: /usr/share/zoneinfo
    
    security:
      authorization: enabled
    
    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development