Execute all global explorers only when needed #227

Closed
opened 2021-11-20 15:21:56 +00:00 by ungleich-gitea · 3 comments

Created by: dheule

My intention is to create a brunch of global explorer which are of use in some cases and makes cdist more userfriendly. But now, all global explorers are allways executed, even the return value of the explorers is never used.

I think a possible approach can be to replace the result files with pipes, and on first read of the pipe, the explorer is executed by the core, all following read calls from the pipe are answered from the core with the result of the first real execute of the explorer.

So cdist can have an unlimited number of global explorers and only used explorers
are executed on the target host, all other explorers laying around are simply ignored.

Also a possible approach would be to create a new explorer type (dynamic explorers) which are sitting in a different directory to (for example dynexploer) and only this ones are executed with the conditional approach explained above. So the overhead to create pipes and monitor it is only in place on explorers which are not interesting for everyone ...

*Created by: dheule* My intention is to create a brunch of global explorer which are of use in some cases and makes cdist more userfriendly. But now, all global explorers are allways executed, even the return value of the explorers is never used. I think a possible approach can be to replace the result files with pipes, and on first read of the pipe, the explorer is executed by the core, all following read calls from the pipe are answered from the core with the result of the first real execute of the explorer. So cdist can have an unlimited number of global explorers and only used explorers are executed on the target host, all other explorers laying around are simply ignored. Also a possible approach would be to create a new explorer type (dynamic explorers) which are sitting in a different directory to (for example dynexploer) and only this ones are executed with the conditional approach explained above. So the overhead to create pipes and monitor it is only in place on explorers which are not interesting for everyone ...
Author
Owner

Created by: telmich

Hey Daniel,

point taken - we can laeve this open for some time as an idea (usually
we have put them into docs/dev/logs/* but the issue tracker is probably
not bad at all to expose ideas to other people).

Regarding the global explores/sap tuning: this is ia great use case!

If you ever submit your global explorers for inclusion, I suggest to
take care they run on every system (maybe not return something if they
don't know how), because they are always run (at the moment ;-)

Cheers,

Nico

dheule [Thu, Feb 06, 2014 at 11:08:45AM -0800]:

Now we have no problem at all,,, i have only write down a idea which are on
my mind ...

But if we extend the count of global explorers (some we already have
developed),
i expect a longer runtime of the explorers, this idea is against long run
times.
--> If you don't expect runtime issues with explorers in next time, feel
free to
close this issue ...

Some explorers which we have and are interesting for everyone are for
example:

  • machine_type --> is the system bare-metal or xen or vmware ?
  • cpu_cores --> how much cores have the cpu
  • cpu_sockets --> how much sockets have the system
  • memory --> how much memory a system have ...

This values are of interest for different tuning tasks of different
applications like sap or oracle etc ...

2014-02-06 17:01 GMT+01:00 Nico Schottelius notifications@github.com:

Interesting approach, but I am wondering which problem you are solving
with this approach? Why can't all global explorers be executed always?

Btw, we have some thoughts about extending cdist to support switches,
storage systems, etc. => there may come something up that creates
"environments" which a dedicated set of explorers / remote_copy and
remote_exec settings in the future.


Reply to this email directly or view it on GitHubhttps://github.com/telmich/cdist/issues/286#issuecomment-34337586
.


Reply to this email directly or view it on GitHub:
https://github.com/telmich/cdist/issues/286#issuecomment-34358461

PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0

*Created by: telmich* Hey Daniel, point taken - we can laeve this open for some time as an idea (usually we have put them into docs/dev/logs/\* but the issue tracker is probably not bad at all to expose ideas to other people). Regarding the global explores/sap tuning: this is ia great use case! If you ever submit your global explorers for inclusion, I suggest to take care they run on every system (maybe not return something if they don't know how), because they are always run (at the moment ;-) Cheers, Nico dheule [Thu, Feb 06, 2014 at 11:08:45AM -0800]: > Now we have no problem at all,,, i have only write down a idea which are on > my mind ... > > But if we extend the count of global explorers (some we already have > developed), > i expect a longer runtime of the explorers, this idea is against long run > times. > --> If you don't expect runtime issues with explorers in next time, feel > free to > close this issue ... > > Some explorers which we have and are interesting for everyone are for > example: > - machine_type --> is the system bare-metal or xen or vmware ? > - cpu_cores --> how much cores have the cpu > - cpu_sockets --> how much sockets have the system > - memory --> how much memory a system have ... > > This values are of interest for different tuning tasks of different > applications like sap or oracle etc ... > > 2014-02-06 17:01 GMT+01:00 Nico Schottelius notifications@github.com: > > > Interesting approach, but I am wondering which problem you are solving > > with this approach? Why can't all global explorers be executed always? > > > > Btw, we have some thoughts about extending cdist to support switches, > > storage systems, etc. => there may come something up that creates > > "environments" which a dedicated set of explorers / remote_copy and > > remote_exec settings in the future. > > > > — > > Reply to this email directly or view it on GitHubhttps://github.com/telmich/cdist/issues/286#issuecomment-34337586 > > . > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/telmich/cdist/issues/286#issuecomment-34358461 ## PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0
Author
Owner

Created by: dheule

Now we have no problem at all,,, i have only write down a idea which are on
my mind ...

But if we extend the count of global explorers (some we already have
developed),
i expect a longer runtime of the explorers, this idea is against long run
times.
--> If you don't expect runtime issues with explorers in next time, feel
free to
close this issue ...

Some explorers which we have and are interesting for everyone are for
example:

  • machine_type --> is the system bare-metal or xen or vmware ?
  • cpu_cores --> how much cores have the cpu
  • cpu_sockets --> how much sockets have the system
  • memory --> how much memory a system have ...

This values are of interest for different tuning tasks of different
applications like sap or oracle etc ...

2014-02-06 17:01 GMT+01:00 Nico Schottelius notifications@github.com:

Interesting approach, but I am wondering which problem you are solving
with this approach? Why can't all global explorers be executed always?

Btw, we have some thoughts about extending cdist to support switches,
storage systems, etc. => there may come something up that creates
"environments" which a dedicated set of explorers / remote_copy and
remote_exec settings in the future.


Reply to this email directly or view it on GitHubhttps://github.com/telmich/cdist/issues/286#issuecomment-34337586
.

*Created by: dheule* Now we have no problem at all,,, i have only write down a idea which are on my mind ... But if we extend the count of global explorers (some we already have developed), i expect a longer runtime of the explorers, this idea is against long run times. --> If you don't expect runtime issues with explorers in next time, feel free to close this issue ... Some explorers which we have and are interesting for everyone are for example: - machine_type --> is the system bare-metal or xen or vmware ? - cpu_cores --> how much cores have the cpu - cpu_sockets --> how much sockets have the system - memory --> how much memory a system have ... This values are of interest for different tuning tasks of different applications like sap or oracle etc ... 2014-02-06 17:01 GMT+01:00 Nico Schottelius notifications@github.com: > Interesting approach, but I am wondering which problem you are solving > with this approach? Why can't all global explorers be executed always? > > Btw, we have some thoughts about extending cdist to support switches, > storage systems, etc. => there may come something up that creates > "environments" which a dedicated set of explorers / remote_copy and > remote_exec settings in the future. > > — > Reply to this email directly or view it on GitHubhttps://github.com/telmich/cdist/issues/286#issuecomment-34337586 > .
Author
Owner

Created by: telmich

Interesting approach, but I am wondering which problem you are solving with this approach? Why can't all global explorers be executed always?

Btw, we have some thoughts about extending cdist to support switches, storage systems, etc. => there may come something up that creates "environments" which a dedicated set of explorers / remote_copy and remote_exec settings in the future.

*Created by: telmich* Interesting approach, but I am wondering which problem you are solving with this approach? Why can't all global explorers be executed always? Btw, we have some thoughts about extending cdist to support switches, storage systems, etc. => there may come something up that creates "environments" which a dedicated set of explorers / remote_copy and remote_exec settings in the future.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ungleich-public/cdist#227
No description provided.