[REQUEST] SSDB Connector

Unsolved NodeBB Development

Suggested Topics


  • 0 Votes
    4 Posts
    295 Views

    Whoever it is, it's not us... as @pitaj suggests it could be bots issuing HEAD requests to determine site availability before crawling? Who knows... I am looking at some of them coming in our logging system now, but they have no user agent either, so 🤷

  • 0 Votes
    2 Posts
    1k Views

    @TheBronx

    I do agree you very much that the polling requests are causing an enormous load on the server. My machine is powerful enough holding 65000+user and 140000+ posts.

    But the load is heavy at peak time, and if I restart nodebb, it can not even recover until the peak was passed.

    @administrators
    Any idea on this? I was obsessed with this for long...

    I found that the ESTABLISHED connections are too large. Does that count for this issue?
    No matter peak time or valley time, this number almost seems the same.

    user@discuss:~$ netstat -n | grep -c ESTABLISHED 14003

    and the ulimit:

    user@discuss:~$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 63711 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 10000 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 63711 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
  • 0 Votes
    1 Posts
    740 Views

    Changing what happens when notifications appear on mobile... · Issue #4695 · NodeBB/NodeBB

    When a notification is received, we automatically execute a toaster alert, and on desktop this works reasonably well. However, on mobile, the toaster takes up a non-insignificant portion of the screen. If you happen to be composing a pos...

    favicon

    GitHub (github.com)

    In order to funnel responses into one place, please reply in the GitHub issue itself 😄

  • 0 Votes
    9 Posts
    3k Views

    @yariplus said in requesting user reputation:

    Sure.

    Here's the custom-pages render function as an example.
    https://github.com/psychobunny/nodebb-plugin-custom-pages/blob/master/library.js#L18-L23

    You can modify it to add getUserUsers to the render vaiables, using the req.uid

    var User = module.parent.require('./user'); function renderCustomPage(req, res) { var path = req.path.replace(/\/(api\/)?/, '').replace(/\/$/, ''); User.getUserFields(req.uid, ['username', 'topiccount', 'reputation'], function (err, user) { if (err || !user) user = null; res.render(path, { title: plugin.pagesHash[path].name, user: user }); }); }

    Now on all the custom pages templates, the variable {user.reputation} will be available. (and undefined for guests)

    works perfect
    @yariplus 4 president

  • 0 Votes
    5 Posts
    2k Views

    1、Can I get data format?
    2、websocket use port 80?
    3、Can I write a test example to send topic by websocket ?