Code Monkey home page Code Monkey logo

docs's Introduction

cover coverY
.gitbook/assets/bacalhau_banner_high_resolution.png
0

Welcome to the Bacalhau Docs

{% hint style="success" %}

  • Bacalhau is now using NATS.
  • The embedded integration of libp2p and IPFS is deprecated from the version v1.4.0. going forward.
  • The API and the job specifications changed from previous versions.

For more information, check out the release notes. {% endhint %}

What is Bacalhau?

Bacalhau is a platform for fast, cost efficient, and secure computation by running jobs where the data is generated and stored. With Bacalhau, you can streamline your existing workflows without the need of extensive rewriting by running arbitrary Docker containers and WebAssembly (WASM) images as tasks. This architecture is also referred to as Compute Over Data (or CoD). Bacalhau was coined from the Portuguese word for salted Cod fish.

Bacalhau seeks to transform data processing for large-scale datasets to improve cost and efficiency, and to open up data processing to larger audiences. Our goals is to create an open, collaborative compute ecosystem that enables unparalleled collaboration. We (Expanso.io) offer a demo network so you can try out jobs without even installing. Give it a shot!

Why Bacalhau?

{% tabs %} {% tab title="Data Scientists" %}

  • Scalability and Flexibility:
    • You can run large-scale computations without relying on a single cloud provider, enhancing flexibility and potentially reducing costs.
    • Bacalhau enables distributed data processing, which can significantly speed up analysis and model training by parallelizing tasks across multiple nodes.
  • Reproducibility:
    • By using Docker or WASM images, data scientists can ensure that their experiments and models are reproducible across different environments.
  • Data Privacy and Security:
    • Bacalhau allows data to be processed close to its source, which can help maintain data privacy and comply with regulatory requirements.
  • Cost Efficiency:
    • Utilize Bacalhau’s platform to dynamically allocate resources, ensuring optimal performance while controlling costs. {% endtab %}

{% tab title="DevOps/MLOps" %}

  • Automation and Orchestration:
    • Seamless Integration: Bacalhau can be integrated into CI/CD pipelines, enabling automated deployment and scaling of machine learning models and other applications.
    • Workload Scheduling: Efficiently schedule and manage workloads across a decentralized network, improving resource utilization and reliability.
  • Fault Tolerance:
    • Decentralized infrastructure ensures high availability and resilience against failures, reducing downtime for critical applications.
  • Scalable Infrastructure:
    • Quickly scale resources up or down based on demand, providing a responsive infrastructure for varying workloads.
  • Cost Management:
    • Utilize Bacalhau’s platform to dynamically allocate resources, ensuring optimal performance while controlling costs. {% endtab %}

{% tab title="IT Operations" %}

  • Infrastructure Efficiency:
    • Efficiently utilize idle or underutilized compute resources within an organization, maximizing hardware investments.
  • Simplified Management:
    • Manage heterogeneous compute resources through a single platform, simplifying administrative tasks and reducing complexity.
  • Enhanced Security:
    • Reduce the risk of centralized points of failure and potential security breaches by leveraging a decentralized network for data processing.
  • Cost Reduction:
    • Bacalhau’s can help drive down your compute costs by up to 72.5% for deploying your ML models and over 90% for your log processing spend.
  • Adaptable Infrastructure:
    • Easily adapt to changing business requirements by scaling infrastructure resources as needed without significant upfront investment. {% endtab %} {% endtabs %}

{% hint style="info" %} ⚡️ Bacalhau simplifies the process of managing compute jobs by providing a unified platform for managing jobs across different regions, clouds, and edge devices. {% endhint %}

How it works

Bacalhau consists of a network of nodes that enables orchestration between every compute resource, no matter whether it is a Cloud VM, an On-premise server or Edge devices. The network consists of two types of nodes:

Requester Node: responsible for handling user requests, discovering and ranking compute nodes, forwarding jobs to compute nodes, and monitoring the job lifecycle.

Compute Node: responsible for executing jobs and producing results. Different compute nodes can be used for different types of jobs, depending on their capabilities and resources.

{% hint style="info" %} For a more detailed tutorial, check out our Getting Started Tutorial. {% endhint %}

Data ingestion

Data is identified by its content identifier (CID) and can be accessed by anyone who knows the CID. Here are some options that can help you mount your data:

{% hint style="info" %} The options are not limited to the above mentioned. You can mount your data anywhere on your machine, and Bacalhau will be able to run against that data {% endhint %}

Security in Bacalhau

All workloads run under restricted Docker or WASM permissions on the node. Additionally, you can use existing (locked down) binaries that are pre-installed through Pluggable Executors.

Best practices in 12-factor apps is to use environment variables to store sensitive data such as access tokens, API keys, or passwords. These variables can be accessed by Bacalhau at runtime and are not visible to anyone who has access to the code or the server. Alternatively, you can pre-provision credentials to the nodes and access those on a node by node basis.

Finally, endpoints (such as vaults) can also be used to provide secure access to Bacalhau. This way, the client can authenticate with Bacalhau using the token without exposing their credentials.

Use Cases

Bacalhau can be used for a variety of data processing workloads, including machine learning, data analytics, and scientific computing. It is well-suited for workloads that require processing large amounts of data in a distributed and parallelized manner.

Once you have more than 10 devices generating or storing around 100GB of data, you're likely to face challenges with processing that data efficiently. Traditional computing approaches may struggle to handle such large volumes, and that's where distributed computing solutions like Bacalhau can be extremely useful. Bacalhau can be used in various industries, including security, web serving, financial services, IoT, Edge, Fog, and multi-cloud. Bacalhau shines when it comes to data-intensive applications like data engineering, model training, model inference, molecular dynamics, etc.

{% embed url="https://www.youtube.com/watch?ab_channel=Expanso&t=7s&v=R5s9cZg5DOM" %} An example on how to build your own ETL pipeline with Bacalhau and MongoDB. {% endembed %}

Here are some example tutorials on how you can process your data with Bacalhau:

{% hint style="info" %} For more tutorials, visit our example page {% endhint %}

Community

Bacalhau has a very friendly community and we are always happy to help you get started:

  • GitHub Discussions – ask anything about the project, give feedback or answer questions that will help other users.
  • Join the Slack Community and go to #bacalhau channel – it is the easiest way engage with other members in the community and get help.
  • Contributing – learn how to contribute to the Bacalhau project.

Next Steps

👉 Continue with Bacalhau Getting Started guide to learn how to install and run a job with the Bacalhau client.

👉 Or jump directly to try out the different Examples that showcases Bacalhau abilities.

docs's People

Contributors

alekseykorzik avatar michaelhoepler avatar js-ts avatar gitbook-bot avatar bacalhau-infra-bot avatar

Stargazers

 avatar

Watchers

David Aronchick avatar  avatar Forrest avatar

docs's Issues

Start a FAQ

@it09 - we should have a FAQ

First question:

  • Q: Why isn't my docker image updating?
  • A: You're using latest, aren't you. Use a tag instead of latest and it should update properly.

JACoB Installed

JACoB here...
I can now access this repo, but ran into trouble during my installation checks.

Here is some additional info on the error(s) I saw:

ENOSPC: no space left on device, mkdir '/mnt/tmp/tmp-98-qI2WcroljLC2'

You may need to add or edit a jacob.json file in the root of your repository to help me better understand how to build your project.

Please visit the JACoB documentation for more information on how to resolve this issue.

[Docs] #1 search in google for something comes back nil

https://www.google.com/search?q=bacalhau+input-source&oq=bacalhau+input-source&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRg80gEIMjU3NWowajeoAgCwAgA&sourceid=chrome&ie=UTF-8

Goes to this page -> https://www.google.com/search?q=bacalhau+input-source&oq=bacalhau+input-source&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRg80gEIMjU3NWowajeoAgCwAgA&sourceid=chrome&ie=UTF-8#:~:text=InputSource%20Specification,References%20%E2%80%BA%20Job%20Specification

But that's 404.

should be redirected.

Need a page for label filtering

Restore links on these pages when back.

- Broken anchor on source page path = /references/api/jobs:
   -> linking to ../api#label-filtering (resolved as: /references/api#label-filtering)
- Broken anchor on source page path = /references/api/nodes:
   -> linking to ../api#label-filtering (resolved as: /references/api#label-filtering)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.