Selective pinning

What is the best way to selectively pin using IPFS Cluster? I need to turn off auto-pinning so every cluster node does not try to mirror everything in the entire cluster. I know I can run another cluster, but something this simple does not warrent another cluster (getting certain files to certain servers but they are all related and belong on the ipfs network).

Finally, I just need a simple CLI way to see what is not pinned that should be so I can decide if I should pin it or not (plugin any logic!). This really needs to support matching metadata tags so finding what needs to be pined is salable (the end-user can manage this setup so it does not get too large, does not weaken security, etc.).

This must work on IPNS and the files within AND when IPNS updates..

pin_only_on_trusted_peers is interesting it does not really open the door for pure logic, one where anyone can plugin their own logic based on almost infinite variations and needs.

disable_repinning is interesting but that is only items that are unhealth.

ipfs-cluster-ctl pin add has an --allocations flag that can be used to specify which peers the content needs to be pinned onto. You could add logic on top to make that decision based on metadata etc.

I am not sure about IPNS as cluster doesn’t deal with that at all.

Sounds like allocations is a push method of pinning. I’m thinking a bit more about each node being protected from the other nodes. Hack or mistake, etc.. I’m contemplating a IPFS Cluster filter for pin / unpin since I can basically talk an AI though it. Maybe there is a way in “go” to load a module dynamically so stuff like this will be efficient and somewhat dynamically upgraded without having to bounce the daemon. I’m pretty much counting on the cluster because it lets me set a replication factor so that is at least one thing off the list! IPFS Cluster filter for pin / unpin - text.is