Needs advise

General Discussion
  • Hello!

    I'd like to move my gaming community from PHPBB to NodeBB. I'm somewhat disappointed about the improvements of PHPBB the last few years, and would like to simplify a lot of things for the people that register to the forums.

    To give an idea of the magnitude of my community forum, I've included the PHPBB forum stats. (Please do not hurt me for not updating my PHPBB forum :()
    Board stats
    In our PHPBB forum the shoutbox is relatively active (I guess about 2 messages per hour on average, with peaks of 20 per hour)

    I'm planning to deploy the NodeBB website to a VPS with 1GB of RAM and 1 vCore. Also, the hard drive is not an SSD. Currently the virtualization is OpenVZ, but I'm planning to move to a new KVM VPS soon (with SSD). I want to host the database (redis/mongo) and the website on the same VPS. Do you think the server will be sufficiently performant on this hosting plan? Or do I risk getting a lot of 503 error messages when it's in use?

    Also: What database should I choose? Redis is certainly more performant, but I'm afraid that it gets out of memory very soon. What database size can I expect? Will MongoDB be a safer choice?

    Can someone advise me about these problems? I can solve other problems (migrating, configuring etc.) for myself ๐Ÿ˜›

  • Additionally: I found that by default polling is preferred over websockets. Is it bad to prefer websockets over polling?

  • Moving your site to NodeBB shouldn't be a problem at all. What is more important is the server stack & the amount of connections you have.

    Best would be to get a VPS at OVH for example. Their plans are cheap and work quite well (at least I use them for all my projects).

    Additionally I would suggest you to check my "High performance stack" tutorial in the Tutorial section. It features a full description to configure a highly efficient server stack.

    About Redis:
    I have around 9k members and 42k posts.
    My Redis instace is using 700MB RAM, which is just fine for the size of my machine.

  • @JasperNL Those are just allowed transports. Socket.io will always prefer websockets.

  • Thank you both for your responses ๐Ÿ™‚

    Does the redis database size scale linearly with the amount of users and posts, or are there other aspects that may increase the database size?

    @AOKP I do agree on it that OVH certainly provides high-quality servers for their price with little downtime. Yet I've had lots of issues with their network (random package loss) and CPU (/proc/loadavg had very often 3.66/4 while I did nothing) when I had a VPS on their system (~ a year ago). I suspect that they oversell their VPS nodes with a factor of around 1.5, which fears me.
    That's why I prefer a little more expensive host (with less RAM, eventually) ๐Ÿ˜‰ (โค@leaseweb)

  • @JasperNL Interesting, I actually had the same issues with OVH when I used them, which is why I don't usually recommend them. I guess mileage varies though, a lot of people love them.

  • @yariplus @JasperNL, alternatively you can use Kimsufi, which belongs to OVH to 100%. The only difference is that the systems there are dedicated ones and not virtual machines. I also use one of these for my download server, which works quite alright.

    About Redis:
    The database size itself will increase the same way as others. More data = bigger database. For more infos check this out:
    http://redis.io/topics/faq


Suggested Topics


  • 0 Votes
    4 Posts
    163 Views

    Not really, no... It just means that you might have a running NodeBB instance you can't stop (short of running something like kill)

  • 0 Votes
    4 Posts
    438 Views

    @pitaj This seems to be a new requirement, so if that is truly the case, then our Facebook SSO plugin is not compatible with the latest Facebook changes.

    Data Deletion Callback ยท Issue #55 ยท julianlam/nodebb-plugin-sso-facebook

    https://developers.facebook.com/docs/development/create-an-app/app-dashboard/data-deletion-callback Required for latest SSO golive.

    favicon

    GitHub (github.com)

    Thanks for reporting

  • 0 Votes
    2 Posts
    828 Views

    @jimmyc2018 I'd wage you need more than just the $5 plan for a few thousand users daily. I don't think we have a chart of x memory / y CPUs per z users.

  • Need help

    Solved General Discussion
    0 Votes
    2 Posts
    947 Views

    @DroidWareWolf

    Need

    .

    .

    More

    .

    .

    Context

  • 0 Votes
    1 Posts
    2k Views

    I'm trying to create a user via php to be recognized by nodebb authentication form. I do this via predis, so I can talk to redis via php.
    This is the relevant part of the code that creates a user in redisdb for nodebb in php: http://pastebin.com/GZWFvuWc

    But sadly, when I tried to login with such created account via php it didn't work and said "User does not exists".
    I checked all 'legit' userdata with my userdata created by php and I can't detect any flaws

    This is what I told php to create in redis, it's all verified and there:

    populate 'user:#' with 22 key's where # is uid populate 'email:uid' with user email and uid populate 'group:registered-users:members' with uid populate 'users:joindate' with 0 and uid populate 'users:joindate' with 0 and uid populate 'users:postcount' with 0 and uid populate 'reputation' with 0 and uid populate 'username:uid' with username and uid populate 'userslug:uid' with userslug and uid

    What am I missing :C??? I checked redis and the data is all their, but nodebb says the user does not exists

    EDIT: I checked the users tab in admin and saw that the username is there that was created from php. After I press the save button on the profile edit page of that profile, that account can then login! how strange. I'm going to do more digging until someone knows what i'm missing here.

    EDIT 2: I forgot slugifying userslug:uid in redis. Finally fix it ๐Ÿ™‚