I'm working on several different webapps written in node. Each webapp has very little traffic (maybe a few HTTP requests per day) so I run them all on a single machine with haproxy as a reverse proxy. It seems each webapp is consuming almost 100MB RAM memory which adds up to a lot when you have many webapps. Because each webapp receives so little traffic I was wondering if there is a way to have all the webapps turned off by default but setup so that they automatically start if there is an incoming HTTP request (and then turn off again if there hasn't been any HTTP requests within some fixed time period).
Run many low traffic webapps on a single machine so that a webapp only starts when it is needed?
86 Views Asked by molsson At
1
There are 1 best solutions below
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in REVERSE-PROXY
- Nginx reverse proxy with query parameters not working
- PGAdmin4 configured behind a reverse proxy but unable to connect to Postgresql server
- CDN Detector Extension / Script
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- How to proxy to another port?
- Accessing solr web interface behind reverse proxy returns "Content Encoding Error"
- Modify response in Rust tower Service
- Shopware 6 mixed content error when using reverse proxy
- Apache 2.4 as a Reverse Proxy for RabbitMQ web socket
- apache reverseProxy how to proxypass to multi virtualhosts on same localhost and port?
- Webservices with Authentik forward auth behind Nginx Proxy Manager and CORS
- NextJS app refreshing with Nginx reverse proxy to PM2
- How to add custom apache2/httpd header based on BALANCER_WORKER_ROUTE variable?
- Can I preserve subdomain with Yarp?
- Reverse Proxy Randomly gives 404 Errors
Related Questions in INETD
- Is xinetd configurable on HP-UX and AIX?
- Run many low traffic webapps on a single machine so that a webapp only starts when it is needed?
- how to disable rsh and rlogin service on debian 7.8
- Are there any known Linux inetd/"wait"-capable web servers with graceful idle shutdown?
- Restarting inetd should effect instances of all inetd controlled processes
- WSAECONNREFUSED: Connection Refused error in AIX server
- gdb could not be started - DDD to a remote inferior debugger
- simple daemon server with QT
- xerces-c library function returns NULL when daemon ran via inetd
- Terminating TFTPD after file transfer
- Accessing a symlink over tftp
- How does inetd know which process to send incoming data to?
- Using xinetd/inetd, why should servers call fflush()?
- Most efficient way to serve less than 10 http requests per day using perl cgi
- notify user from service with python
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes. These a dozen different ways to handle this. With out more details not sure the best way to handle this. One option is using node VM
https://nodejs.org/api/vm.htmlAnother would be some kind of Serverless setup. See:https://www.serverless.com/Honestly, 100MB is a drop in the bucket with ram prices these days. Quick google shows 16GB ram for $32 or to put that differently, 160 nodes apps. I'm guessing you could find better prices on EBay or a something like that.Outside learning this would be a total waste of time. Your time is worth more than the effort it would take to set this up. If you only make minimum wage in the US it'd take you less than 4 hours to make back the cost of the ram. Better yet go learn Docker/k8s and containerize each of those apps. That said learning Serverless would be a good use of time.