Giter Club home page Giter Club logo

Comments (7)

LyKos4 avatar LyKos4 commented on June 20, 2024 1

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.

soharab-ic avatar soharab-ic commented on June 20, 2024

@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.

LyKos4 avatar LyKos4 commented on June 20, 2024

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.

soharab-ic avatar soharab-ic commented on June 20, 2024

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.

LyKos4 avatar LyKos4 commented on June 20, 2024

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.

soharab-ic avatar soharab-ic commented on June 20, 2024

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.

soharab-ic avatar soharab-ic commented on June 20, 2024

Please try below steps and post the results if you see different results. I am using default namespace.

  1. 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
  1. 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
  1. 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
  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.