Replies: 1 comment
|
关联: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Background
Sealing as a service has grown from an idea summarized in a Google doc to one of the priorities among Filecoin data-onboarding roadmap. There are many potential merits of SaaS which includes lowering entry to Filecoin network, further separation of different roles, and the possibility of creating new line of business.
Abstract
There are many ways that Sealing-as-a-Service could be carried out, but we think that an all-purpose and generic solution would include the following...
Given the above, venus-cluster is well situated to serve as the underlying platform of such SaaS type of service.
venus-clusterFeaturesFor readers who may not as well versed in Venus, please refer to this document to get an overall idea of Venus architecture.
Through working with many SPs (small and large) and directing much efforts into the development,
venus-clusterstorage power solution has been built from ground up to be configurable, scalable and customizable. Some of the design principles and key features make it very compatible with the SaaS initiative include...(but not limited to)SaaS design
For a comprehensive understanding of what
venus-clusteris, please refer to the documentation here. We believe that it will be crucial for the understanding of the design we presented below.Again there are many ways that
SaaScould be achieved, below are 3 different approaches...SaaS Architecture 1
This is clearly not the "renting computation resources" model of
sealing-as-a-serviceinitiative but is a good starting point for understandingvenus-clusterarchitecture.In the design presented above, the "SaaS" actually take care of both sealing and persistent storage while storage provider maintain full custody of its wallets and funds. Storage provider essentially, in this scenario, outsourced both PoRep and PoST to a third-party service provider. When signatures are needed for either PoRep or PoST, storage provider could remotely sign the necessary messages through its secure connection to
venus-gatewaywith a trusted Venus chain service, decoupling message signing with the rest of the systems.SaaS Architecture 2
In the design above, a storage provider would need to manage its persistent storage and maintain PoSTing while PoRep is completely outsourced to a
SaaS. Again the setup is similar for storage provider in design 1 where it needs to setupvenus-wallet(owner, worker, controller) and connect it to a trusted Venus chain service to sign PoRep messages that are produced bySaaSwith the benefit of storage provider retaining full control of their private keys.On the
SaaSside, by taking advantages of passive job scheduling feature ofvenus-clusterwhere venus-worker is able to change the state machine of a sealing sector, a pool ofvenus-workercan be configured to report to a remotevenus-sector-managerand start sealing for a particular miner_id.Then by the flexibility of
venus-cluster's customizable framework, aSaaSprovider could write their own storage strategy and plug it intovenus-worker's configuration file so that when a sector is sealed the custom storage logic will be executed by the said worker.SaaS Architecture 3
In the design 3 above, it further builds upon the architecture of design 2 and potentially optimize the work flow on both
SaaSside and storage provider side. For example, APIs forSaaSrelated admin features, avenus-sector-managerforSaaSprovider to transfer meta data of sealed sectors to its counter-part on storage provider side, worker pool configurations specific toSaaSprovider and etc.Conclusion
We believe that
venus-clusteralong with Venus systems are well positioned to be one of the platforms for a fully fledgedSaaSsolution. Relevant API designs and how exactlyvenus-sector-managerinteract withvenus-workercould be found at venus-cluster repo. Thoughts, comments or questions are welcomed!Other Solutions on the Market
All reactions