Commit Graph

11 Commits (c19c4dca002ffaf352d63de5be2d294d6e49893f)

Author SHA1 Message Date
chenghuiyu 56616ac535 Remove unused variables ‘LOG'
Perhaps it will be used for debbuging, but now it's unused.

Change-Id: Ie7f5b8461f45a30455c2278b5d67cd392a4f49f8
2017-11-22 16:24:52 +08:00
junboli a248d388d5 Fix the depreciate warning of get_transport
Use get_rpc_transport instead of get_transport, because
get_transport has been deprecate.

Change-Id: Ied4c0291fb06907aae5130940549ec7892eaaaf7
2017-10-10 17:55:40 +08:00
Lingxian Kong ac9d477112 Scale down function
This is admin only operation. The load monitoring of function execution
depends on the monitoring solution of underlying orchestrator.

Implements: blueprint qingling-autoscaling
Change-Id: I2eff62a45a718d230b51f18c5a49e0abea5f3164
2017-09-03 23:55:32 +12:00
Lingxian Kong c74ac2faac Add scale up ability for function execution
Provide an API to do scale up operation, leave the container
monitoring to orchestrator underlay, although k8s already supports
HPA, but we should not rely on specific container orchestrator
capability for general purpose.

Partially implements: blueprint qingling-autoscaling
Change-Id: Iff1ff646a6df263b2770b8cebc74e80ab18c7613
2017-08-28 16:25:46 +12:00
Lingxian Kong 997c78131e Implement periodic task for jobs
Change-Id: I9093333cc9b1a64b5e386af87db80df5aa4dfb4b
2017-07-26 09:58:46 +12:00
Lingxian Kong 992c90e044 Support update runtime
If update image, will send asynchronous request to engine. If some
error happened during update, engine will rollback runtime
automatically.

Change-Id: I1598b1c04427dfdb7d573bbff8dc017f113c2fd2
2017-06-26 21:22:40 +12:00
Lingxian Kong 75efc2b1ad Add expiry handler for function service
When a package function is executed, a service url is cached so it's
faster when function is executed again. But this will lead to problem
if function is never executed for a long time.

This patch add an expiry machanism which will release resources in
orchestration platform.

Change-Id: I754ebe314d87f6d7c194d9b9c061316f7ba74245
2017-05-22 23:40:17 +12:00
Lingxian Kong d80f3acf35 Support sync/async execution
Invoke a function in sync way means the command will wait until the
execution finish. On the contrary, 'sync=false' means user will get
a response before the function is actually invoked. User could get
execution status using execution ID in the response.

Change-Id: I605ea8414f49d44899e0bc8c36b89e48e335d284
2017-05-18 22:42:55 +12:00
Lingxian Kong 14789ab0c8 Support docker image as function code
Allow user to create function using her own docker image including
all the code and dependencies inside. The image needs to have an
script running as entry point, expecting user's input as params.

This allow users to execute functions written in any language.
2017-05-18 17:19:13 +12:00
Lingxian Kong df32a9f412 Complete basic workflow(Finally!)
- Create runtime
- Create function
- Invoke function(i.e. create execution)
2017-05-12 12:00:19 +12:00
Lingxian Kong 7b6deac2c1 Add runtimes rest api
- Add db layer and db migration support
- Add orchestrator layer, currently only kubernetes supported.
- Now, create/get/delete runtime work fine
2017-05-05 15:57:52 +12:00