Edge node что это
Theta Network Documentation
Compute Overview
Theta Edge Network can work not only as a data delivery network, but also as a generic edge computing platform. Such a platform allows Task Initiators to post tasks for Edge Nodes to download and solve. Task initiators also register the tasks and provide the TFuel rewards for each task on the blockchain through smart contracts. Tasks can be anything ranging from solving a set of equations, finding novel protein structures to help fight COVID-19, transcoding a video, to thousands of other applications that can leverage a network of distributed edge computing devices.
Edge Nodes can work as a generic computational platform which can host various software including the solver for the tasks issued by task initiators. Edge Nodes poll the task initiators to download tasks. Once a task is solved, the Edge Node can upload the solution to relevant smart contracts on the blockchain. These smart contracts act as the verifier for the solution, and as a trustless escrow for the task rewards. Once a submitted solution is verified, smart contracts will transfer the reward to the solver (i.e. a particular Edge Node) automatically and transparently. If a Task Initiator does not want to reveal the solutions on-chain, zero-knowledge proof techniques (e.g. zk-SNARK) can be leveraged. Once an Edge Node solves a task, it can encrypt the solution using the task initiator’s public key, and submit the encrypted solution to the smart contracts.
Meanwhile, an Edge Node can also generate a zero-knowledge proof showing that the submitted solution is encrypted using the task initiator’s public key, and the plaintext solution indeed solves the corresponding task. Smart contracts simply verify the proof and reward the Edge Node if the proof passed the check. On the other hand, the task Initiator can download the encrypted solution from the blockchain and decrypt it using its own private key. Such a decentralized edge computing framework eliminates all counterparty risks and is thus able to effectively incentivize the Edge Nodes to share their unused computing resources.
Theta crypto economics can naturally be extended to handle any generic computing. For example, the zero-knowledge proof for the edge compute tasks is similar to the Proof-of-Relay for the data delivery tasks. Thus, the smart contracts which handle the Proof-of-Relay rewards can be generalized to manage rewards for generic computing tasks. Similar to data delivery, smart contracts can enforce a rule that a certain percentage of the escrowed TFuel reward should be burned as the cost for using the Theta edge computing infrastructure. With the edge network expanding its capability beyond data delivery to cover generic edge computing, we believe the utility value of the network and TFuel can be extended substantially in the future.
Theta Network Documentation
Setting up the Edge Node
The Theta Edge Node is the latest evolution of the Theta Edge Cacher.
The Edge Node allows you to relay video streams over the Theta Network and earn TFUEL, providing support to THETA.tv and other upcoming video platforms using the Theta Network. With the latest update, you can now also broadcast your own video streams and have them distributed over the Theta Edge Network! This allows you to stream entirely peer-to-peer without any centralized CDN involved.
To start using the Theta Edge Node, download the app for Windows or macOS. If you want to run the command line version (e.g. on Linux), please refer to this guide which provides instructions to run the Theta Edge Node with docker.
If you have an existing version of the Theta Edge Node, your software will automatically update to this newest version. This also means that for the first time, macOS users can natively relay video over the Theta Network, which should boost the number of Theta Network nodes making a more robust edge network.
Once you launch the app, you’ll see the Edge Node dashboard:
If you just want to relay other users’ video streams and earn TFUEL, then you’re all set! The “Cache / Compute” section shows your current relaying Status and your Pending Earnings. In this beta version of the Edge Node, earnings are distributed during the first week of each month. In the production version of the app, earnings will be distributed to your Theta address in real-time.
Использование пустых граничных узлов в кластерах Apache Hadoop в HDInsight
Сведения о том, как добавить пустой граничный узел в кластер HDInsight. Пустой граничный узел — это виртуальная машина Linux, на которой установлены и настроены те же клиентские инструменты, что и на головных узлах. Но без запущенных служб Apache Hadoop. Граничный узел можно использовать для доступа к кластеру, а также тестирования и размещения клиентских приложений.
Пустой граничный узел можно добавить в имеющийся кластер HDInsight или в новый кластер при его создании. Добавление пустого граничного узла осуществляется с помощью шаблона Azure Resource Manager. В следующем примере показано, как это сделать.
Как показано в примере, при необходимости можно вызвать действие скрипта для выполнения дополнительной настройки. Например, установка Apache Hue в граничном узле. Скрипт действий скрипта должен быть общедоступен через Интернет. Например, если скрипт хранится в службе хранилища Azure, используйте общедоступные контейнеры или общедоступные большие двоичные объекты.
Размер виртуальной машины граничного узла должен соответствовать требованиям к размеру виртуальной машины рабочего узла кластера HDInsight. Рекомендуемые размеры виртуальной машины рабочего узла приведены в разделе о создании кластеров Apache Hadoop в HDInsight.
После создания граничного узла можно подключиться к нему с помощью SSH и запустить клиентские средства для доступа к кластеру Hadoop в HDInsight.
Пользовательские компоненты, установленные на граничном узле, получают коммерчески оправданную поддержку от компании Майкрософт. В результате могут быть устранены возникающие проблемы. Или вы можете обратиться к ресурсам сообщества для получения дополнительной помощи. Ниже приведены некоторые из наиболее активных сайтов для получения помощи от сообщества.
При использовании технологии Apache можно получить помощь на соответствующих сайтах для проектов Apache, например Apache Hadoop на сайте https://apache.org.
Образы Ubuntu станут доступны для создания кластера HDInsight в течение 3 месяцев после публикации. По состоянию на январь 2019 года работающие кластеры (включая граничные узлы) не были автоматически исправлены. Клиенты должны использовать действия сценария или другие механизмы для исправления работающего кластера. Дополнительные сведения см. в статье Обновление путем частичной замены ОС для кластеров HDInsight.
Добавление граничного узла в имеющийся кластер
В этом разделе описано, как использовать шаблон Resource Manager, чтобы добавить граничный узел в имеющийся кластер HDInsight. Шаблон Resource Manager можно найти в GitHub. Шаблон диспетчера ресурсов вызывает действие скрипта, расположенное по адресу https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.hdinsight/hdinsight-linux-add-edge-node/scripts/EmptyNodeSetup.sh. Этот скрипт не выполняет никаких действий. Он необходим для демонстрации вызова действия скрипта с помощью шаблона Resource Manager.
Нажмите следующую кнопку, чтобы войти в Azure и открыть шаблон Azure Resource Manager на портале Azure.
Настройте следующие свойства:
Свойство | Описание |
---|---|
Подписка | Выберите подписку Azure, используемую для создания кластера. |
Группа ресурсов | Выберите группу ресурсов, используемую для имеющегося кластера HDInsight. |
Расположение | Выберите расположение для имеющегося кластера HDInsight. |
Имя кластера, | Введите имя имеющегося кластера HDInsight. |
Установите флажок Я принимаю указанные выше условия и нажмите кнопку Приобрести, чтобы создать граничный узел.
Выберите группу ресурсов Azure, используемую для существующего кластера HDInsight. Иначе вы получите сообщение об ошибке «Не удается выполнить запрошенную операцию с вложенным ресурсом. Родительский ресурс не найден.»
Добавление граничного узла при создании кластера
В этом разделе описано, как использовать шаблон Resource Manager, чтобы создать кластер HDInsight с граничным узлом. Шаблон Resource Manager можно найти в коллекции шаблонов быстрого запуска Azure. Шаблон диспетчера ресурсов вызывает действие скрипта, расположенное по адресу https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.hdinsight/hdinsight-linux-with-edge-node/scripts/EmptyNodeSetup.sh. Этот скрипт не выполняет никаких действий. Он необходим для демонстрации вызова действия скрипта с помощью шаблона Resource Manager.
Создайте кластер HDInsight, если его еще нет. Ознакомьтесь со статьей Руководство по Hadoop. Приступая к работе с Hadoop в HDInsight.
Нажмите следующую кнопку, чтобы войти в Azure и открыть шаблон Azure Resource Manager на портале Azure.
Настройте следующие свойства:
Свойство | Описание |
---|---|
Подписка | Выберите подписку Azure, используемую для создания кластера. |
Группа ресурсов | Создайте группу ресурсов для кластера. |
Расположение | Выберите расположение группы ресурсов. |
Имя кластера, | Введите имя для нового кластера. |
Имя пользователя для входа в кластер | Введите имя пользователя HTTP для Hadoop. Имя по умолчанию — admin. |
Пароль для входа в кластер | Введите пароль пользователя HTTP для Hadoop. |
Имя пользователя SSH | Введите имя пользователя SSH. Имя по умолчанию — sshuser. |
Пароль SSH | Введите пароль пользователя SSH. |
Установка действия скрипта | В рамках этой статьи оставьте значение по умолчанию. |
Некоторые свойства жестко заданы в шаблоне: тип кластера, число рабочих узлов кластера, размер граничного узла и имя граничного узла.
Установите флажок Я принимаю указанные выше условия и нажмите кнопку Приобрести, чтобы создать кластер с граничным узлом.
Добавление нескольких граничных узлов
В кластер HDInsight можно добавить несколько граничных узлов. Настроить конфигурацию нескольких граничных узлов можно только с помощью шаблонов Azure Resource Manager. Пример шаблона приведен в начале этой статьи. Для параметра targetInstanceCount задайте значение, соответствующее количеству создаваемых граничных узлов.
Доступ к граничному узлу
Граничный узел отображается в виде приложения на портале Azure. На портале представлены сведения для доступа к граничному узлу с помощью SSH.
Проверка конечной точки SSH граничного узла
Использование Hive в граничном узле
К граничному узлу можно подключиться с помощью SSH. См. дополнительные сведения об использовании SSH в HDInsight.
После подключения к граничному узлу с помощью SSH откройте консоль Hive, используя следующую команду:
Чтобы показать таблицы Hive в кластере, выполните следующую команду:
Удаление граничного узла
Граничный узел можно удалить на портале Azure.
Дальнейшие действия
В этой статье вы узнали, как добавить граничный узел и как получить к нему доступ. Дополнительные сведения см. в следующих статьях:
Theta Edge Node released
Introducing the Theta Edge Node (beta) — the latest evolution of the Theta Edge Cacher. The Edge Node allows you to relay video streams over the Theta Network and earn TFUEL, providing support to THETA.tv and other upcoming video platforms using the Theta Network. With the latest update, you can now also broadcast your own video streams and have them distributed over the Theta Edge Network! This allows you to stream entirely peer-to-peer without any centralized CDN involved.
To start using the Theta Edge Node, download the app for Windows or Mac. If you have an existing version of the Theta Edge Cacher / PGN app, your software will automatically update to this newest version. This also means that for the first time, Mac users can natively relay video over the Theta Network, which should boost the number of Theta Network nodes well over 1,000 and make for a more robust edge network.
When the Edge Node app starts up, if you are a brand new user you’ll be asked to enter your Theta wallet address:
Once you’re set up, you’ll see the Edge Node dashboard:
If you just want to relay other users’ video streams and earn TFUEL, then you’re all set! The “Edge Cacher” section shows your current relaying Status and your Balance (earnings to date). In this beta version of the Edge Node, earnings are distributed at the end of each month. In the production version of the app, earnings will be distributed to your Theta address in real-time.
To broadcast your own stream, you’ll need to use a streaming app like OBS Studio (Open Broadcaster Software, which is free and open-source). If you are using OBS, in the Stream settings set your Service to ‘Custom’, your Server to “rtmp://localhost:1935/stream/”, and make up a Stream Key.
Then set up your Streaming source and click “Start Streaming”. (If you haven’t used OBS Studio before, you can find a quick tutorial here.
Once you are set up and streaming through OBS, your stream is now being broadcast over the Theta Edge Network! Anyone running the Theta Edge Node can now watch your stream by accessing the Theta Edge Player and entering your unique stream ID. Your stream can also be accessed directly at the URL “https://edge-player-beta.thetatoken.org/?streamId=[STREAM ID]”, where [STREAM ID] represents the address indicated as “My Stream ID” in the Theta Edge Node app. In the example pictured above, that would be “https://edge-player-beta.thetatoken.org/?streamId=0x9d8ffb2924c980d2843b7c780ad5963dbb9a87a3”. Watching via the direct URL requires an HLS stream player like the Chrome extension Native HLS Playback or VLC player.
You can also watch a demo stream we’ve set up here as long as you’re running the Theta Edge Node app.
It is normal to take a few seconds for the stream to load; since this is purely peer-to-peer streaming, it takes some time for a peer to connect and buffer the stream.
About edge nodes
Learn more about edge nodes.
What is an edge node
Edge nodes are instances of the cluster between the user and cluster’s machines. Users can run their jobs on the edge node instead of doing it directly on the master nodes, which are critical for the overall functioning. This way you can prevent capacity losses on these nodes.
Since every application of the cluster has its client installed on every single edge node, you can use these services without connecting to any other instance. So the edge nodes are the only machines whose potential can be affected by users’ behaviours.
It enables you to provide a personal node to use the cluster for every user. It also allows to re-spawn a new edge node if the last one is too altered whereas an altered master can damage the whole cluster.
Connect to edge nodes
To connect to the edge nodes, you can follow the instructions of the Using SSH section.
As the edge node is synchronized with the FreeIPA users, you must connect by SSH as one of these. You also need to authenticate yourself with the SSH key associated to your user and with your password when prompted.
Use services
From the edge node, you can use any service on to any instance thanks to the clients of these applications that are installed, configured on it and synchronized by Ambari.
You can have further information about your edge node through the Apache Ambari interface, to see it :
In the Ambari interface, you can see metrics about your edge node and the list of the services installed and the applications runnig on it.
Did you find this guide useful?
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the «Create a ticket» form.
Thank you. Your feedback has been received.