Developers

Frequently asked questions

Short answers to the most common questions about servers on piap.

Updated:

How many servers can I connect with one token?

As many as you want, within your account's cap on computers connected with tokens. We recommend one token per fleet, so you can revoke one without touching the others.

What happens when the server restarts?

With a persistent volume on /data, it comes back as the same computer, with its models and reputation. Requests in flight at shutdown go back to the network with no penalty. Without a volume, every start is a new computer; in that case use PIAP_REMOVE_ON_EXIT=true.

Can I choose which models it serves?

Yes, with PIAP_MODELS (or policy.models in the chart): a list of catalog ids, downloaded on start. Empty means any model that fits in the memory and disk you allow.

Can I use my server for my own requests?

Yes. With PIAP_OWN_USE=on (the default) your requests can go to your servers without spending credits.

How do I stop sharing?

Stop the container or scale the replicas to zero: the graceful shutdown finishes or hands back in-flight requests. To remove the servers from your account, remove them in My computers or revoke the token.

bash
docker stop -t 90 piap-node
kubectl -n piap scale statefulset piap-node --replicas=0
helm uninstall piap-node -n piap

What data does the container keep?

In /data: your settings, the computer identity (in an encrypted file) and the downloaded models. It never stores request content or answers.

Can I share only at certain hours?

Yes, with PIAP_HOURS and PIAP_DAYS, in the TZ time zone (UTC if you do not set it). Outside the window the computer pauses and takes no requests.

Can I use a server that also runs other things?

Yes. Cap memory with PIAP_MAX_MEMORY_PERCENT and the container limits, and turn on PIAP_YIELD=on so it yields when your other programs use more than 85 % of memory or 75 % of CPU.

Can I share only with my team?

Yes. With PIAP_NETWORKS you list your private networks in priority order; add global only if you also want to serve the whole network.

Is there an environment for testing?

Yes: with PIAP_NETWORK=lab the server connects to the piap lab network, which uses staging-api.piap.io, staging-models.piap.io and staging-registry.piap.io, with its own tokens.