ایده پردازان نظری:هاست |ثبت دامین|افزایش ممبر تلگرام
  • پورتال مشتریان
    • عضویت
    • ورود به پورتال مشتریان
    • ارتباط با ما
    • ارسال درخواست پشتیبانی
    • ثبت شکایات
  • فروشگاه ساز
    • امکانات فروشگاه ساز حرفه ای
    • سفارش پکیج های فروشگاه ساز
    • دانلود فروشگاه ساز
    • طرحی سایت فروش دامنه
    • طراحی فروشگاه فروش محصولات دیجیتال
    • فروشگاه ساز فارسی فایرشاپ
  • سایت ساز
    • امکانات سایت ساز حرفه ای
    • سفارش پکیج های سایت ساز
  • سرور
    • سرور اختصاصی
    • سرور مجازی
    • دیتاسنتر
    • سرور چیست؟
    • فرق سرور مجازی با اختصاصی
  • خدمات
    • ثبت آدرس در نقشه سایت گوگل
    • خدمات شبکه
      • پشتیبانی شبکه
      • تعرفه خدمات شبكه
      • درباره دپارتمان شبکه
      • شبکه های محلی
    • دوربین مدار بسته
    • تبلیغات در گوگل
    • بازاریابی با پورسانت ۳۰ درصد
  • طراحی سایت
    • طراحی سایت خبری
    • طراحی پورتال
    • طراحی حرفه ای سایت بازیگران و هنرپیشه ها
    • طراحی سایت آزمایشگاه
    • طراحی سایت آکواریوم فروشی ها
    • طراحی سایت استاتیک
    • طراحی سایت پزشکان
    • طراحی سایت داروخانه
    • طراحی سایت داینامیک
    • طراحی سایت فلش
    • طراحی سایت نیازمندی ها
    • طراحی سایت های ورزشی و خبری ورزشی
    • طراحی سایت وکلا
    • طراحی سیستم نوبت دهی آنلاین
    • طراحی وب سایت های خبری
  • دامین
    • تعرفه ثبت دامین
    • ثبت دامین
    • ثبت دامین ای ار
    • معنای پسوندها ثبت دامنه
  • هاستینگ
    • هاست ویندوز |sql server 2016
      • هاست ویندوز ۲۰۱۶ – پلسک اونیکس (SSD)
      • هاست دات نت نیوک
      • چرا هاست ویندوز
    • خدمات هاست لینوکس
      • خرید هاست لینوکس حرفه ای
      • هاست وردپرس
      • هاست فروم
      • هاست جوملا
      • دیتالایف انجین
      • هاست اپن کارت
      • هاست دروپال
      • چرا هاست لینوکس
    • هاست با فروشگاه ساز رایگان
    • هاست با سایت ساز رایگان
    • هاست نامحدود ویندوز و لینوکس با دامین رایگان
    • مقایسه هاستینگ لینوکس و ویندوز
    • امتیازات خدمات میزبانی وب
    • چرا ایده پردازان نظری
    • خدمات ایده پردازان نظری در یک نگاه
    • آموزش
  • خرید ممبر تلگرام
  • خانه

Configure R Server to operationalize analytics (enterprise) – Microsoft R Server

نوشته شده در تاریخ فروردین ۲۳, ۱۳۹۷ توسط samkia




  • ۲/۱۶/۲۰۱۸
  • ۱۱ minutes to read

  • Contributors

    • Josée Martens
    • Heidi Steen

In this article


Applies to: Microsoft R Server 9.x                 (Looking for the Machine Learning Server article)

This article explains how to configure R Server after installation to act as a deployment server and to host analytic web services for operationalization. This article describes how to perform an enterprise configuration of these features.

With an enterprise configuration, you can work with your production-grade data within a scalable, multi-machine setup, and benefit from enterprise-grade security.

Enterprise architecture

This configuration includes one or more web nodes, one or more compute nodes, and a database.

  • Web nodes act as HTTP REST endpoints with which users can interact directly to make API calls. These nodes also access the data in the database and send requests to the compute node for processing. Web nodes are stateless, and therefore, session persistence (“stickiness”) is not required. A single web node can route multiple requests simultaneously. However, you must have multiple web nodes to load balance your requests across multiple compute nodes.

  • Compute nodes are used to execute R code as a session or service. Each compute node has its own pool of R shells and can therefore execute multiple requests at the same time. Scaling up compute nodes enables you to have more R execution shells and benefit from load balancing across these compute nodes.

  • The database. While an SQLite 3.7+ database is installed by default, we strongly recommend that you set up a SQL Server (Windows) or PostgreSQL (Linux) database instead.

In an enterprise configuration, these nodes can be scaled independently. Scaling up web nodes enables an active-active configuration that allows you to load balance the incoming API requests. Additionally, if you have multiple web nodes, you must use a SQL Server or PostgreSQL database to share data and web services across web node services.

For added security, you can configure SSL and authenticate against Active Directory (LDAP) or Azure Active Directory.

Another configuration, referred to as “one-box”, consists of a single web node and a single compute node installed on the same machine. Learn more about this configuration, here.

Enterprise Configuration

Supported platforms

The web nodes and compute nodes are supported on:

  • Windows Server 2012 R2, Windows Server 2016
  • Ubuntu 14.04, Ubuntu 16.04,
  • CentOS/RHEL 7.x

How to upgrade

To replace an older version, you can uninstall the older distribution before installing the new version (there is no in-place upgrade). Carefully review the following steps:

Upgrade a compute node

Important

Before you begin, back up the appsettings.json file on each node. You can use this backup if there is an issue during the upgrade.

  1. Uninstall Microsoft R Server 9.0 using the instructions in the article Uninstall Microsoft R Server to upgrade to a newer version. The uninstall process stashes away a copy of your 9.0 configuration files under this directory so you can seamlessly upgrade to R Server 9.1 in the next step:

  2. Install Microsoft R Server:

    • On Windows: follow these instructions Installation steps | Offline steps

      Important

      For SQL Server Machine Learning Services, you must also:

      1. Manually install .NET Core 2.0.
      2. Add a registry key called H_KEY_LOCAL_MACHINESOFTWARER ServerPath with a value of the parent path to the R_SERVER folder (for example, C:Program FilesMicrosoft SQL Server140).
    • On Linux: follow these instructions Installation steps | Offline steps

  3. Launch the administration utility with administrator privileges. The utility checks for any 9.0 configuration files present under the current folder mentioned previously.

  4. From the main menu, choose the option to Configure server (or in previously releases, Configure R Server for Operationalization).

  5. From the submenu, choose the option to Configure a compute node.

  6. When the script asks you if you’d like to upgrade, enter y. The node is automatically set up using the configuration you had for R Server 9.0.
    The compute node is now configured.

  7. Repeat these steps for each compute node.

Upgrade a web node

Important

Before you begin, back up the appsettings.json file on each node. You can use this backup if there is an issue during the upgrade.

  1. Uninstall Microsoft R Server 9.0 using the instructions in the article Uninstall Microsoft R Server to upgrade to a newer version. The uninstall process stashes away a copy of your 9.0 configuration files under this directory so you can seamlessly upgrade to R Server 9.1 in the next step:

  2. Install Microsoft R Server:

    • On Windows: follow these instructions Installation steps | Offline steps

      Important

      For SQL Server Machine Learning Services, manually install .NET Core 2.0 and add a registry key called H_KEY_LOCAL_MACHINESOFTWARER ServerPath with a value of the parent path to the R_SERVER folder, such as C:Program FilesMicrosoft SQL Server140.

    • On Linux: follow these instructions Installation steps | Offline steps

  3. Launch the administration utility with administrator privileges. The utility checks to see if any 9.0 configuration files are present under the current folder mentioned previously.

  4. From the main menu, choose the option to Configure server (or in previously releases, Configure R Server for Operationalization).

  5. From the submenu, choose the option to Configure a web node.

  6. When the script asks you if you’d like to upgrade, enter y. The node is automatically set up using the configuration you had for R Server 9.0.
    Note: You can safely ignore the Python warning during upgrade.

  7. From the main menu, choose the option to Run Diagnostic Tests to test the configuration.

  8. Exit the utility. Your web node is now configured.

  9. Repeat these steps for each web node.

How to configure for the enterprise

۱٫ Configure a database

By default, the web node configuration sets up a local SQLite database. We strongly recommend that you use a SQL Server or PostgreSQL database for this configuration to achieve higher availability. In fact, you cannot use SQLite database at all if you have multiple web nodes or need a remote database.

To configure that database, follow these instructions.

If you intend to configure multiple web nodes, then you must set up a SQL Server or PostgreSQL database so that data can be shared across web node services.

Warning

Choose and configure your database now. If you configure a different database later, all data in your current database is lost.

۲٫ Configure compute nodes

Note

Side-by-side installations of R Server web nodes and compute nodes are not supported.

In an enterprise configuration, you can set up one or more compute nodes.

Important

We highly recommend that you configure each node (compute or web) on its own machine for higher availability.

  1. Install Microsoft R Server and its dependencies:

    On Windows

    Follow these instructions: R Server installation steps | Offline steps

    Important

    For SQL Server Machine Learning Services, you must manually install .NET Core 2.0 and add a registry key called H_KEY_LOCAL_MACHINESOFTWARER ServerPath with a value of the parent path to the R_SERVER folder, such as C:Program FilesMicrosoft SQL Server140.

    On Linux

    Follow these instructions: R Server installation steps | Offline steps

    Additional dependencies for R Server on Linux 9.0.1. If you have installed R Server 9.0.1 on Linux, you must add a few symlinks:

    R Server 9.0.1
    Linux
    CentOS 7.x Ubuntu 14.04 Ubuntu 16.04
    Symlinks cd /usr/lib64
    sudo ln -s libpcre.so.1 libpcre.so.0
    sudo ln -s libicui18n.so.50 libicui18n.so.36
    sudo ln -s libicuuc.so.50 libicuuc.so.36
    sudo ln -s libicudata.so.50 libicudata.so.36
    sudo apt-get install libicu-dev
    cd /lib/x86_64-linux-gnu
    ln -s libpcre.so.3 libpcre.so.0
    ln -s liblzma.so.5 liblzma.so.0

    cd /usr/lib/x86_64-linux-gnu
    ln -s libicui18n.so.52 libicui18n.so.36
    ln -s libicuuc.so.52 libicuuc.so.36
    ln -s libicudata.so.52 libicudata.so.36

    cd /lib/x86_64-linux-gnu
    ln -s libpcre.so.3 libpcre.so.0
    ln -s liblzma.so.5 liblzma.so.0

    cd /usr/lib/x86_64-linux-gnu
    ln -s libicui18n.so.55 libicui18n.so.36
    ln -s libicuuc.so.55 libicuuc.so.36
    ln -s libicudata.so.55 libicudata.so.36

    Note: If there are issues with starting the compute node, see here.

  2. Launch the administration utility with administrator privileges.

    Note

    You can bypass the interactive configuration steps of the node using the argument -silentcomputenodeinstall when launching the administration utility. If you choose this method, you can skip the next two steps. For R Server 9.1 on Windows, for example, the syntax might be:
    dotnet Microsoft.RServer.Utils.AdminUtilMicrosoft.RServer.Utils.AdminUtil.dll -silentcomputenodeinstall. Learn about all command-line switches for this script, here.

  3. From the main menu, choose the option to Configure R Server for Operationalization.

  4. From the submenu, choose the option to Configure a compute node.

  5. When the configuration utility is finished, open port 12805:

    • On Windows: Add an exception to your firewall to open port 12805. And, for additional security, you can also restrict communication for a private network or domain using a profile.

    • On Linux: If using IPTABLES or equivalent firewall service on Linux, then open port 12805 using iptables or the equivalent command.

  6. From the main utility menu, choose the option Stop and start services and restart the compute node to define it as a service.

The compute node is now configured. Repeat these steps for each compute node you want to add.

۳٫ Configure web nodes

In an enterprise configuration, you can set up one or more web nodes. Note that it is possible to run the web node service from within IIS.

Important

We highly recommend that you configure each node (compute or web) on its own machine for higher availability.

  1. On each machine, install the same R Server version you installed on the compute node.

    • On Windows: follow these instructions Installation steps | Offline steps

      Important

      For SQL Server Machine Learning Services, you must also:

      1. Manually install .NET Core 2.0.
      2. Add a registry key called H_KEY_LOCAL_MACHINESOFTWARER ServerPath with a value of the parent path to the R_SERVER folder (for example, C:Program FilesMicrosoft SQL Server140).
    • On Linux: follow these instructions Installation steps | Offline steps

  2. Declare the IP addresses of every compute node with each web node.

    1. Open the configuration file, <server-home>/Microsoft.RServer.WebNode/appsettings.json. (Find <server-home> for your version.)

    2. In the file, search for the section starting with "BackEndConfiguration": { .

    3. Update the "Uris": { properties to declare each compute node.

      • In R Server 9.1, you must specify the Uri for each compute node individually using the Values property and/or specify port ranges (or IP octets) using the Ranges property.

        For example, both of the following snippets result in the same specification of four compute nodes:

        "Uris": 
           "Values": [
             “http://10.1.1.1:12805”, 
             “http://10.0.0.1:12805”, 
             “http://10.0.0.2:12805”, 
             “http://10.0.0.3:12805”
           ]
        
        
        "Uris": 
           "Values": [“http://10.1.1.1:12805”],
           "Ranges": [“http://10.0.0.1-3:12805”]
        
        
      • In R Server 9.0, you must specify the Uri for each compute node individually using the Values property. For example, this snippet results in four compute nodes:

        "Uris": 
           "Values": [
             “http://10.1.1.1:12805”, 
             “http://10.0.0.1:12805”, 
             “http://10.0.0.2:12805”, 
             “http://10.0.0.3:12805”
           ]
        
        

      Do not update any other properties in this file at this point. These other properties are updated during the compute node configuration.

    4. Close and save the file.

    5. Repeat these steps on each web node to declare each compute node.

  3. Launch the administration utility with administrator privileges:

    Note

    You can bypass the interactive configuration steps of the node using the argument -silentwebnodeinstall and by defining a password for the local ‘admin’ account when you launch the administration utility. If you choose this method, you can skip the next three steps. For R Server 9.1 on Windows, for example, the syntax might be:
    dotnet Microsoft.RServer.Utils.AdminUtilMicrosoft.RServer.Utils.AdminUtil.dll -silentwebnodeinstall my-password. Learn about all command-line switches for this script, here.

    1. From the main menu, choose the option to Configure R Server for Operationalization.

    2. From the submenu, choose the option to Configure a web node.

    3. When prompted, provide a password for the built-in, local operationalization administrator account called ‘admin’.
      Later, you can configure R Server to authenticate against Active Directory (LDAP) or Azure Active Directory.

    4. From the main menu, choose the option to Run Diagnostic Tests. Verify the configuration by running diagnostic test on each web node.

    5. From the main utility menu, choose the option Stop and start services and restart the web node to define it as a service.

    6. Exit the utility.

  4. For IPTABLES firewall or equivalent service on Linux, allow remote machines to access the web node’s public IP using iptables (or the equivalent command) to open port 12800.

Your web node is now configured. Repeat these steps for each web node you want to add.

Important

R Server uses Kestrel as the web server for its operationalization web nodes. Therefore, if you expose your application to the Internet, we recommend that you review the guidelines for Kestrel regarding reverse proxy setup.

۴٫ Setup enterprise-grade security

In production environments, we strongly recommend the following approaches:

  1. Configure SSL/TLS and install the necessary certificates.

  2. Authenticate against Active Directory (LDAP) or Azure Active Directory.

  3. For added security, restrict the list of IPs that can access the machine hosting the compute node.

۵٫ Provision on the cloud

If you are provisioning on a cloud service, then you must also create inbound security rule for port 12800 in Azure or open the port through the AWS console. This endpoint allows clients to communicate with the R Server’s operationalization server.

۶٫ Set up a load balancer

You can set up the load balancer of your choosing.

Keep in mind that web nodes are stateless. Therefore, session persistence (“stickiness”) is NOT required.

For proper access token signing and verification across your configuration, ensure that the JWT certificate settings are exactly the same for every web node. These JWT settings are defined on each web node in the configuration file, appsetting.json. Learn more…

۷٫ Post configuration steps

  1. Update service ports, if needed.

  2. Run diagnostic tests.

  3. Evaluate the configuration’s capacity.



source_link
https://www.asp.net

This entry was posted in دسته‌بندی نشده and tagged (Looking for the Machine Learning Server article), <server-home>, Active Directory (LDAP) or Azure Active Directory, Azure Resource Management templates, Blog, blog post, configure SSL, Configure SSL/TLS, create inbound security rule for port 12800 in Azure, diagnostic test, Evaluate, Feedback, follow these instructions, guidelines for Kestrel, here, How to contribute, Installation steps, Launch the administration utility, Learn more, Offline steps, pool of R shells, Previous Version Docs, Privacy & cookies, R Server installation steps, Run diagnostic tests, SQL Server (Windows) or PostgreSQL (Linux), SQL Server or PostgreSQL database, Terms of Use, Test the configuration, the local 'admin' account, these templates on GitHub, Trademarks, Uninstall Microsoft R Server to upgrade to a newer version, Update service ports. Bookmark the permalink.

ناوبری نوشته

← پاگانی هوایرا کوپه به خط آخر رسید
Configure Machine Learning Server 9.2.1 to operationalize analytics (Enterprise) →

 

آخرین مقالات

  • آموزش گرفتن انواع لاگ در اندروید
  • چرا ایلان ماسک در مورد جلسات کاری سختگیر است
  • خودروی مفهومی و برقی بی ام و iX3 رونمایی شد
  • ۲۸ Best Free Ghost Themes Beautifully Designed With Simplicity In Mind 2016
  • MagXP v3.1.3 – Ultimate Magazine WordPress Theme
  • مایکروسافت تعداد هولولنزهای فروخته شده را اعلام کرد
  • WP Post Modules for NewsPaper and Magazine Layouts v1.9.11
  • عدم همکاری تلگرام دلیل لغو مجوز استقرار سرورها در ایران
  • هوش مصنوعی سرعت کشف شیشه‌ فلزی را بالا می‌برد
  • تا چه اندازه برای انتقادها در کسب و کار اهمیت قائل شویم

پربازدید ترین امروز

  • خرید ممبر تلگرام
  • تلگرام كند می‌شود
  • Bistup Free Website Template
  • ساخت کوچکترین عصای سفید هوشمند در کشور/عرضه موبایل با صفحه کلید بریل
  • بررسی بازی God of War
  • امکان جدید: تعیین داروی مناسب برای هر بیمار افسردگی متناسب با شرایط او
  • CEO
  • Gema Lite
  • مهلت پرداخت بدهی های معوقه اپراتورهای ارتباطی تمدید شد
  • حفاظت از رمزهای عبور را جدی بگیرید

پربازدید این ماه

  • خرید ممبر تلگرام
  • ارائه خدمات غیرحضوری صدور دفترچه درمانی سازمان تامین اجتماعی
  • جزئیات جدید از آیفون ۹ و ۹ پلاس + عکس
  • نوروز ۹۶ مبارک؛ کجارو در گذر یک سال
  • نمایش آیکون زنده در وردپرس با افزونه LivIcons Evolution
  • فروشگاه ساز حرفه ای
  • قالب وردپرس GridLove فارسی نسخه ۱٫۲
  • بررسی اچ تی سی یو ۱۱
  • بررسی کنسول نینتندو سوییچ
  • نیسان جوک؛ مشخصات فنی، قیمت و هر آنچه درباره آن باید بدانید

کلمات کلیدی :هاست ,هاست ویندوز ,هاست لینوکس, ثبت دامین ,فروشگاه ساز ,سایت ساز ,طراحی سایت ,هاستینگ ,هاست ارزان ,دامین ارزان, هاست ویندوز ارزان ,هاست لینوکس ارزان, طراحی فروشگاه اینترنتی, خرید دامین, خرید هاستینگ ,سفارش هاست,طراحی سایت خبری, هاستینگ اختصاصی ,ثبت دومین ارزان windows host, linux hosting

info @ irawebsazan .org

http://iranwebsazan.org/webhosting/themes/Higgs-zerif-lite/images/map25-redish.png

تهران خیابان صاحب الزمان نبش رمضانی پلاک 2

02166057992

تمامی کالاها و خدمات حسب مورد دارای مجوز های لازم از مراجع مربوطه می باشند و فعالیتهای این سایت تابع قوانین و مقررات جمهوری اسلامی ایران می باشد.

کلیه حقوق محفوظ می باشد. طراحی و توسعه: ایران وب سازان  iranwebsazan.org