Comments (7)
I am talking for the fission function pods and I am checking which run a specific function with the command fission function pods --fnNamespace=(namespace) --name=(function-name)
So for same function for which I had done one request for running it, I saw one pod closing and then another coming up
from fission.
@LyKos4 Have you tried increasing the concurrency?
- If you set the
--concurrency=5
and sent 3 requests then 3 pods will be created to handle each request. - If you again sent 5 request then already created pods will handle the requests or some additional pods are created to handle the requests, max upto 5 pods.
from fission.
Yes, I have tried changing concurrency, yolo and rpp.
What I want to achieve is to have 1 pod to handle each function run.
If I want to run 5 times a function to have 5 pods each running once the function
from fission.
In that case --yolo
should work.
fission function create --name hello-go --env go --src hello.go --entrypoint Handler --yolo
- A new specialized pod will be created for each function run and the pod will serve only one request in its lifetime. It will be cleaned up after two minutes.
Did you see a different behaviour with yolo
or did i misunderstood your requirement?
from fission.
With yolo true there were more that one pods created for a function run.
So I start a function run one pod is created, but then this one is closed and another one is opened for same function and this happens multiple times, also at the end I don't get the results of my function . I want one pod per function run.
from fission.
This should not happen. Only one pod per function call is created with yolo
.
Are you sure that you are not mistaking envionment pods with specialized/function pods?
from fission.
Please try below steps and post the results if you see different results. I am using default
namespace.
- Create an environment
fission env create --name go --image fission/go-env-1.16 --builder fission/go-builder-1.16
Check for env pods
$ kubectl get po
NAME READY STATUS RESTARTS AGE
go-566077-67589cbc99-vrgtj 2/2 Running 0 100s
poolmgr-go-default-566077-576d64cd9b-brm9h 2/2 Running 0 100s
poolmgr-go-default-566077-576d64cd9b-lwn8x 2/2 Running 0 100s
poolmgr-go-default-566077-576d64cd9b-x2dgz 2/2 Running 0 100s
- Create function with
yolo
set to true
fission function create --name hello-go --env go --src hello.go --entrypoint Handler --yolo
Verify that no function pods exist at the moment.
$ fission fn pods --name hello-go
NAME NAMESPACE READY STATUS IP EXECUTORTYPE MANAGED
- Test the function and verify one function function pod is created.
$ fission fn test --name hello-go
Go, world!
$ fission fn pods --name hello-go
NAME NAMESPACE READY STATUS IP EXECUTORTYPE MANAGED
poolmgr-go-default-566077-576d64cd9b-brm9h default 2/2 Running 10.244.1.155 poolmgr false
- Run the test again and verify that now there are two function pods.
$ fission fn test --name hello-go
Go, world!
$ fission fn pods --name hello-go
NAME NAMESPACE READY STATUS IP EXECUTORTYPE MANAGED
poolmgr-go-default-566077-576d64cd9b-brm9h default 2/2 Running 10.244.1.155 poolmgr false
poolmgr-go-default-566077-576d64cd9b-lwn8x default 2/2 Running 10.244.1.154 poolmgr false
from fission.
Related Issues (20)
- How to count the 99% tail delay quantile of Fission
- Utilize .Release.Name as Standard Prefix for All Kubernetes Resources in Helm Chart
- [help] how to build fission-bundle image
- Unable to Create Duplicate HTTP Trigger Names Across Different Namespaces HOT 1
- Fission watch all namespaces HOT 1
- Loki integration Issue HOT 5
- Router cannot create resource Ingresses HOT 2
- Fission helm conflicts with Rancher HOT 1
- [help] Is it possible to create a Python function from a zipped release in GitHub?
- Failed to create MessageQueueTrigger HOT 1
- "fission check" does not work outside of "fission" namespace
- Thoughts on the Functional Positioning of the Executor Component
- fission package build stuck in running HOT 1
- Package build trigger mechanism (esp. if fission packages are deployed with gitops)
- help,help,help v1.18.0 I get error buildermgr , envwatcher not get watcher to create env by controller
- Package auto retry rebuild HOT 1
- fetcher archive code why use DefaultZip HOT 10
- Download source code to file error when using fission command
- fission spec apply --delete fails to delete environment
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 fission.