IF architecture #1129
Replies: 9 comments 4 replies
-
CC: @nttDamien |
Beta Was this translation helpful? Give feedback.
-
SummaryI'd like to discuss about implementing Web API for PurposeWe want to use IF on Kubernetes, and to leverage it as a part of monitoring system. IF is useful tool to calculate environmental values like energy consumption or carbon emission. We can use it for both realtime and historical data. It will make monitoring stack more powerful, and we can evaluate them easily with GSF standards like SCI. Currently IF provides CLI tools only, so it is difficult to integrate to online system like a micro service architecture. We need to create "invoker" of IF CLI tools to handle stdin/stdout/stderr as a parent process. Proposal1. Implement Web API for
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed explanation @YaSuenag. I have some questions regarding dockerisation, does it change the default behavior of IF? One of the tradeoffs regarding how Carbon Aware SDK was implemented is that it "required" docker to be able to run. Is the change above you are proposing to add additional optional configuration to make it easier to people to run IF as a web deamon inside a container? Or is it a proposal to make docker and if-run as a web-api the default option? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have summarized my opinions below. I would appreciate your comments. The outputonly OptionFrom the philosophy of the Impact Framework, I don't think the query parameter Also, although this is outside the scope of this discussion, from the perspective of overall consistency in the Impact Framework, we should add an option equivalent to Other Options in if-runSince Additional Input FilesThe builtin plugin Dockerfile and Official Container ImageProviding container images officially would lower the barrier to using the Impact Framework, which is a good thing. However, an important philosophy of the Impact Framework is that users can freely create and use plugins. Therefore, we should support the following two points:
Additionally, the container image would be useful not only when running the Web API but also when running the CLI, so we should include all commands. Helm ChartAs mentioned above, if we enable the installation of external plugins when starting the official container image, we need to make it possible to specify a personal access token to allow installation from GitHub Packages. (This is because even if you make a npm package public on GitHub Packages, a personal access token is still required) |
Beta Was this translation helpful? Give feedback.
-
Hi all, I filed the issue for implementing this: #1136 For some reason I could not create a subissue, but I think we can work with following tasks:
We need to determine API specification referring to comment from @kariya-mitsuru , but it can be worked in each sub issues. So I think we can ready to work. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I and @kariya-mitsuru are preparing to create PR for Web API. For general use cases, we would like to reach consensus on the following topics:
|
Beta Was this translation helpful? Give feedback.
-
All of tasks for Web API have been done! Thanks all for your help! We should be able to get "official" Web API container image and Helm chart when next IF is released. So I'm looking forward to next release. |
Beta Was this translation helpful? Give feedback.
-
@YaSuenag fantastic - thanks for all your work on this! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@kaito-kameda @YaSuenag
Beta Was this translation helpful? Give feedback.
All reactions