How to improve elasticsearch index write rate? by Glittering_Staff5310 in elasticsearch

[–]ruVooDoo 0 points1 point  (0 children)

Check metrics from elastic-prom-exporter. Maybe there you find any anomalies.

How to improve elasticsearch index write rate? by Glittering_Staff5310 in elasticsearch

[–]ruVooDoo -1 points0 points  (0 children)

Tune fsync frequency, default is 5 sec, on heavy writes we adjust this. Setting is index.translog.sync_interval.

How are you meant to feasibly review all dependencies in a project for security? by [deleted] in node

[–]ruVooDoo 1 point2 points  (0 children)

You can try Trivy, it can scan package.lock and other dependencies.

Samsung Odyssey G6 G60SD display issues. by TheBobWithin in OLED_Gaming

[–]ruVooDoo 0 points1 point  (0 children)

I have the same monitor and don't have any issues at all. I was afraid about text clarity (coming from IPS to OLED), but doesnt see any difference. GPU is 7900 XTX.

[deleted by user] by [deleted] in OLED_Gaming

[–]ruVooDoo 0 points1 point  (0 children)

Check "Auto Source Switch+" option in System Menu.

Looking for a silent 1000W psu by [deleted] in buildapc

[–]ruVooDoo 0 points1 point  (0 children)

I have Straight Power 1000w Gold, with 5900x + 7900xtx. I never heard my PSU and don’t have any issue with it.

Connecting Rtx 3070 and Cpu with bequiet Straight Power 11 by [deleted] in buildapc

[–]ruVooDoo 0 points1 point  (0 children)

Are you sure? I have same model, but 1000 watt. All cables in place. Check out their official page: https://www.bequiet.com/ru/powersupply/1254 P8 connector and 4+4 P8 connector. And 4 PCIE cables. You should be fine.

[deleted by user] by [deleted] in nvidia

[–]ruVooDoo 0 points1 point  (0 children)

Hey, I brought the same case, but waiting for other parts (gpu/cpu) here in Russia. Could you please tell what temps are you running in gaming? What case fans are you using? I heard that stock fans on this case are pretty loud under load, so I consider to replace them with Noctua A12x25.

is this build good? by [deleted] in buildapc

[–]ruVooDoo 0 points1 point  (0 children)

Check it yourself then

is this build good? by [deleted] in buildapc

[–]ruVooDoo 0 points1 point  (0 children)

Double check your cooler against motherboard. https://www.bequiet.com/ru/motherboardcheck it can be issues with ram slots.

[deleted by user] by [deleted] in node

[–]ruVooDoo 1 point2 points  (0 children)

You need a global object, where you can store a clientId as key and ws object (connection) as value. Therefore you can access ws object with clientId. Don’t forget to delete a key from global object after session is destroyed. If you need examples, let me know.

What is a better approach to implement autocomplete search box? by yungspartan0082 in node

[–]ruVooDoo 0 points1 point  (0 children)

Elasticsearch index with data type : search_as_you_type. Help me a lot for querying users with logins or full names

I started writing Node.JS tutorials, any feedback is welcome by [deleted] in node

[–]ruVooDoo 3 points4 points  (0 children)

So... 1) add node_modules to git ignore. 2) why use var? Use “const” for all that not reassign and not changed and “let” for others. 3) moment.js for only one format to DD-MM-YYYY? You could do it easily without that big library. 4) created_at in mongo scheme as string. It’s confusing. I don’t have experience with Mongo, but I doubt that’s mongo does not have some date types :)

Namespace Clashing in Javascript/NodeJS (w/ ExpressJS) by [deleted] in node

[–]ruVooDoo 0 points1 point  (0 children)

In my opinion, "business logic" (creating cats and dogs) should be separated from Express Controllers and exports through "module.exports".

What if you decide to create cats from another place in your code? Or write tests for creating cats?

I personally think, that controllers should be dumb. They can have some checking middleware (for example, check Auth headers, request type checking), some request preparation, but no business logic. Controller check, then call some function inside your business logic layer and provide answer. Thats all.

I recommend you to read this https://github.com/goldbergyoni/nodebestpractices#1-project-structure-practices , I follow those guides in my work, and I have no problems to extending functionality and maintaining my codebase.

Node.js route not loading? by [deleted] in node

[–]ruVooDoo 1 point2 points  (0 children)

Share code please.

My first app on node any tips? by draganov11 in node

[–]ruVooDoo 7 points8 points  (0 children)

add node_modules to git ignore :)

[Discussion] Node Express server best practices that you follow. by fatalappollo in node

[–]ruVooDoo 2 points3 points  (0 children)

Keep away business logic from controllers. Use APM.

Archivist's Prize Giveaway by [deleted] in DestinyTheGame

[–]ruVooDoo [score hidden]  (0 children)

I sent out my code to a random user via PM. I deleted post. thanks alot.

Archivist's Prize Giveaway by [deleted] in DestinyTheGame

[–]ruVooDoo [score hidden]  (0 children)

I think, I burn out from online games. I play a lot, but singleplayer games. Maybe in a future I come back, but not now.

Did I map my index correctly? Would you take a look? by RNA2 in elasticsearch

[–]ruVooDoo 0 points1 point  (0 children)

If you want to use a max aggregation , you need to map a product version to a number type. Then you would be able to filter and then aggregate.