Comments (7)
@carlosedp please could you take a look?
from faasd.
I can explore this further so I will assign myself
from faasd.
Derek assign: me
from faasd.
The containers shouldn't stay but the IP allocation is kept on the filesystem.
The CNI plugin uses the "host-local" IPAM that by default stores the allocated IPs in /var/lib/cni/networks/$NETWORK_NAME
.
I think it would be a good thing to move this directory to /var/run/cni
for example so it would be cleaned between reboots.
What do you think @alexellis?
from faasd.
This does not happen here, as can be seen below, first I curl directly to the gateway IP address (.10) and list the containerd tasks. Gateway has the PID 5736.
Then I restart faasd and the gateway container has other PID (6664). Also it has a new IP address (.15).
Curl to it on a deployed function returns as well. Also there are no duplicate containers.
❯ curl -d Test 10.62.0.10:8080/function/figlet1
_____ _
|_ _|__ ___| |_
| |/ _ \/ __| __|
| | __/\__ \ |_
|_|\___||___/\__|
❯ sudo ctr task ls
TASK PID STATUS
prometheus 5612 RUNNING
gateway 5736 RUNNING
queue-worker 5852 RUNNING
basic-auth-plugin 5393 RUNNING
nats 5493 RUNNING
❯ sc-restart faasd.service
❯ sudo ctr task ls
TASK PID STATUS
basic-auth-plugin 6311 RUNNING
nats 6411 RUNNING
prometheus 6535 RUNNING
gateway 6664 RUNNING
queue-worker 6778 RUNNING
❯ sudo cat /var/lib/cni/results/openfaas-cni-bridge-gateway-6664-eth1
{"cniVersion":"0.4.0","interfaces":[{"name":"openfaas0","mac":"72:db:c2:d4:d3:69"},{"name":"veth6470e54c","mac":"2e:24:51:57:34:c1"},{"name":"eth1","mac":"8e:92:84:46:5c:8a","sandbox":"/proc/6664/ns/net"}],"ips":[{"version":"4","interface":2,"address":"10.62.0.15/16","gateway":"10.62.0.1"}],"routes":[{"dst":"0.0.0.0/0"}],"dns":{}}% ❯ curl -d Test 10.62.0.15:8080/function/figlet1
_____ _
|_ _|__ ___| |_
| |/ _ \/ __| __|
| | __/\__ \ |_
|_|\___||___/\__|
❯ sudo ctr container ls
CONTAINER IMAGE RUNTIME
basic-auth-plugin docker.io/openfaas/basic-auth-plugin:0.18.10 io.containerd.runc.v2
gateway docker.io/openfaas/gateway:0.18.8 io.containerd.runc.v2
nats docker.io/library/nats-streaming:0.11.2 io.containerd.runc.v2
prometheus docker.io/prom/prometheus:v2.14.0 io.containerd.runc.v2
queue-worker docker.io/openfaas/queue-worker:0.9.0 io.containerd.runc.v2
from faasd.
Also I can't deploy the same figlet function twice:
❯ faas ls
Function Invocations Replicas
figlet1 0 1
❯ faas store deploy figlet --name=figlet1 --env write_timeout=1s
WARNING! Communication is not secure, please consider using HTTPS. Letsencrypt.org offers free SSL/TLS certificates.
Function figlet1 already exists, attempting rolling-update.
Deployed. 200 OK.
URL: http://127.0.0.1:8080/function/figlet1
❯ faas ls
Function Invocations Replicas
figlet1 0 1
I believe a function with or without labels should be unique by it's name.
from faasd.
Thanks for looking at this @carlosedp I have also tried to replicate and it seems like the problem did not persist. I only deployed the same function with two different set of labels this time though and restarted the faasd
and faasd-provider
services which is a subset of the things I did originally.
I will close this I think what I have noticed was related with me recompiling the binary or some very corner case.
from faasd.
Related Issues (20)
- Issues with rust HOT 1
- Access host's network from a docker-compose.yaml's service HOT 5
- Support request for Docker installed with faasd (invalid) HOT 5
- Can docker-compose be used with faasd? HOT 8
- Support question on MQTT HOT 4
- Executing install.sh fails because of wrong version HOT 1
- Grafana installation - volume permissions HOT 2
- Multi-node support HOT 3
- Support request for monitoring with cAdvisor HOT 6
- NATS JetStream support HOT 2
- disable printing function invocation duration
- Terrraform install fails on macOS Sonoma HOT 2
- faasd and faasd provider in different ports HOT 1
- faasd namespace support openfaas=true instead of openfaas=1
- Is Scale to Zero included in the Community Edition of OpenFaaS? HOT 8
- support faasd get HOT 1
- Postgresql database connection problem HOT 16
- MemoryLimit needs changing to: MemoryMax
- Deprecate 32-bit Arm support HOT 1
- Additional property postgresql is not allowed HOT 4
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 faasd.