• 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

Database and web server in separate vps?

Scheduled Pinned Locked Moved Tutorials
3 Posts 3 Posters 402 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.
  • R Offline
    R Offline
    Roy Miller
    wrote on last edited by
    #1

    How can I install nodebb webserver and database in separate vps for scaling? Please share tutorial?

    scottalanmillerS 1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #2

    Hi @roy-miller there is no specific tutorial for this, but you can install NodeBB as normal on one server, and MongoDB/redis as usual on another server. You can follow the instructions on docs.nodebb.org for your specific OS. The only important part here is ensuring that only your NodeBB app server can communicate with your database server.

    https://docs.mongodb.com/manual/reference/configuration-options/

    Have a look at bindIP and ensure this is set correctly.

    1 Reply Last reply
    0
  • scottalanmillerS Offline
    scottalanmillerS Offline
    scottalanmiller Community Rep
    replied to Roy Miller on last edited by
    #3

    @roy-miller said in Database and web server in separate vps?:

    How can I install nodebb webserver and database in separate vps for scaling? Please share tutorial?

    What do you need to know? It's as easy as installing the database on one VM and the app on another. When you put in the configuration information to the app in config.json it handles everything right there automatically, there is nothing "to know."

    Now be aware, unless you are scaling to an absurd degree, this will have a serious negative effect of slowing your site down by adding latency. And I know of no NodeBB site that needs it. What kind of traffic are you expecting? We'd estimate that you'd need over a billion hits a month to even need to talk about something like this, and even then, it would only be "on your radar" and not something that you need.

    I would step back and evaluate this carefully. Do you really feel that you are going to run the largest NodeBB installation of all time by orders of magnitude? And if so, maybe you want to bring in specialists who are very used to working with NodeBB and MongoDB and large scale scaling because you are going to need this to really, really work and not just be the first time you are experimenting with setting up something of this nature.

    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