Replies: 1 comment
-
关联: |
Beta Was this translation helpful? Give feedback.
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-cluster
FeaturesFor 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-cluster
storage 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-cluster
is, 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
SaaS
could be achieved, below are 3 different approaches...SaaS Architecture 1
This is clearly not the "renting computation resources" model of
sealing-as-a-service
initiative but is a good starting point for understandingvenus-cluster
architecture.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-gateway
with 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 bySaaS
with the benefit of storage provider retaining full control of their private keys.On the
SaaS
side, by taking advantages of passive job scheduling feature ofvenus-cluster
where venus-worker is able to change the state machine of a sealing sector, a pool ofvenus-worker
can be configured to report to a remotevenus-sector-manager
and start sealing for a particular miner_id.Then by the flexibility of
venus-cluster
's customizable framework, aSaaS
provider 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
SaaS
side and storage provider side. For example, APIs forSaaS
related admin features, avenus-sector-manager
forSaaS
provider to transfer meta data of sealed sectors to its counter-part on storage provider side, worker pool configurations specific toSaaS
provider and etc.Conclusion
We believe that
venus-cluster
along with Venus systems are well positioned to be one of the platforms for a fully fledgedSaaS
solution. Relevant API designs and how exactlyvenus-sector-manager
interact withvenus-worker
could be found at venus-cluster repo. Thoughts, comments or questions are welcomed!Other Solutions on the Market
Beta Was this translation helpful? Give feedback.
All reactions