Comments (4)
Hi.
Spawning new worker may be an issue only on cold-start of app, because if you already have some workload it means that you already have enough workers to handle that workload. Cold-start is rare situation so we don't really think that's an issue. And on the other hand, having some amount of idle workers is unnecessary spending of resources (i.e memory and connections). Also, we don't know and can't know how to calculate the right number of pre-spawned app workers without real workload, and it can not be configured via profile, because that number should depend on workload. Maybe sometimes in the future it will be done with some heuristic, but not with simple worker pre-spawning.
About second issue. What's the point of having app workers being idle?
from cocaine-core.
Spawning new worker may be an issue only on cold-start of app, because if you already have some workload it means that you already have enough workers to handle that workload. Cold-start is rare situation so we don't really think that's an issue.
Cold-start is rare only if you HAVE some "constant" workload =) And if it's rather instable, first-worker starts will occur from time to time... For someone they may be a little annoying.
This
And on the other hand, having some amount of idle workers is unnecessary spending of resources (i.e memory and connections).
and this
Also, we don't know and can't know how to calculate the right number of pre-spawned app workers without real workload, and it can not be configured via profile, because that number should depend on workload.
is admin's business, I think... If he really needs more smooth app-start - he will be able to have it with this feature =) You give the opportunity - admin decides whether to use it, you see?
About second issue. What's the point of having app workers being idle?
I don't know what's the point to have workers idle forever. But it was your team who made this feature =)
It's just the same thoughts about opportunities. You've given a way to start non-dying workers through this config param - then it's rather obvious to give a way of pre-spawning this forever-living workers.
This all is not a kind of some important feature, it's just my thoughts I've decided to share with you. I've decided, maybe they can be useful somehow =)
from cocaine-core.
Oh, I missed that somehow.
But it was your team who made this feature
Frankly, it looks more like a bug than a feature : ) I guess, we'll fix it in the nearest future.
Yes, @noxiouz ?
from cocaine-core.
Hi.
Immortal workers feature was added for some reason, but nobody remembers what reason it was, so we'll probably drop it, yeah. We are planning to rework the scheduler, and the current implementation ideas for that new scheduler do not go well with pre-spawned or immortal workers, mainly because we plan to migrate workers around the cluster to utilize resources more effectively, which kind of kills the 'always ready' part of the benefits of having a pre-spawned worker pool, and I don't see any other benefits anyway.
from cocaine-core.
Related Issues (20)
- does elasticsearch plugin required to start cocaine-runtime HOT 3
- gcc 4.8.2: multiple 'maybe-uninitialized' warnings HOT 4
- Your releases don't contain sobmodule-checkouts in foreign HOT 5
- Clean-up configured "runtime" directory HOT 2
- Can not build v0.11 on Fedora19 HOT 5
- v0.11 application crashes in dispatch.hpp HOT 15
- (MongoDB_INCLUDE_DIR AND MongoDB_LIBRARIES HOT 1
- Could not start cocaine runtime HOT 11
- Cmake should check libasio-dev HOT 2
- build failed HOT 10
- how to build cocaine-core HOT 5
- cocaine does not start HOT 4
- Start Locator service restircted HOT 16
- Failed to start cocaine-runtime HOT 10
- Cocaine-runtime v0.11 crash HOT 2
- Terrible project name! HOT 4
- Moving from cocaine 11 to 12
- Cannot execute git submodule update --init HOT 1
- cmake can not find msgpack
- Project status? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocaine-core.