NCache は、コンテナ環境をネイティブにサポートする、.NET向けの極めて高速でスケーラブルなインメモリ分散キャッシュです。データベースのスケーリングにおけるボトルネックを解消し、高同時実行コンテナ環境におけるアプリケーションを線形にスケーリングできます。Windowsインストーラをダウンロードできます。 (.msi) Windowsにインストールしてください。または、展開することでインストールを簡素化することもできます。 NCache Dockerコンテナ内。
業界標準の使い始め方 NCache ビルド済みをフェッチすることです NCache Dockerイメージ Docker Hubから。これらのDockerイメージには、 NCacheは、.NETを多用する環境において、従来のインメモリソリューションよりも優れたパフォーマンスを発揮する、すぐに使える分散キャッシュを提供します。「docker pull」コマンドを使用するだけで、環境にインストールできます。これにより、エンタープライズグレードのCI/CDパイプラインとのシームレスな統合が実現します。
NCache UbuntuベースのLinuxではDockerイメージとして利用可能です。その他のLinuxでは、 Dockerファイル により提供さ Alachisoft 好みのフレーバーやLinuxに合わせて修正してください。 NCache Docker 内では、.NET アプリケーションの特徴であるサブミリ秒のレイテンシと線形スケーラビリティが維持されます。
ほとんどの場合、あらかじめ構築された NCache Docker Hubにあるイメージは、迅速なデプロイに必要なすべてを備えています。しかし、場合によっては、 カスタムDockerイメージ これには、独自のソフトウェアや、標準 OS ソフトウェアのその他のバリエーションも含まれます。
この一例は、Linuxのフレーバーです。 NCache Docker Hub の Docker イメージは Debian Linux を使用していますが、別の種類の Linux が必要になる場合があります。 NCache サーバー; NCache Linuxの複数のフレーバーで正常に動作します。 または、アプリケーションサーバー用のカスタムDockerイメージを作成することもできます(NCache クライアント(自分のアプリケーションだけでなく、 NCache クライアントソフトウェア。このアプローチにより、コンテナの起動時間が最適化され、開発環境と本番環境全体で環境の一貫性が確保されます。
そのようなすべての場合、 Alachisoft ニーズに合わせて編集およびカスタマイズできるさまざまな Dockerfile を提供します。
カスタム Docker イメージを作成するために編集できる Dockerfile の例を次に示します。
典型的なDockerfileは NCache NCache サーバー 高トラフィックのマイクロサービス、ASP.NET Coreセッションプロバイダー、リアルタイムPub/Subメッセージングに最適です。以下のような構成になっています。
# Setting base image for NCache.
FROM ubuntu:22.04
# Setting work directory to copy setups and resources for configuring NCache.
WORKDIR /app
# Make sure your machine has access to internet for installation of packages
# Make sure that the folder ("resources") exist in the same directory as the Dockerfile.
# Make sure that "ipbinding.sh" script resides in the "resources" folder.
# Make sure that "installncache.sh" script resides in the "resources" folder.
# Make sure that NCache Linux setup (.tar.gz) resides in the "resources" folder. It can be downloaded from https://www.alachisoft.com/download-ncache.html.
# Copying resources and setups into the work directory of the container.
COPY resources .
# Exposing ports used by NCache for communication.
EXPOSE 8250-8260 9800 7800-7900 8300-8400 9900 10000-10100
# Installing prerequisite ...
RUN apt-get update && apt-get install -y \
procps \
ed \
apt-transport-https \
curl \
libicu-dev \
&& rm -rf /var/lib/apt/lists/*
# Installing NCache Linux setup (.tar.gz).
# The parameter "--firstname" represents the first name of the user.
# The parameter "--lastname" represents the last name of the user.
# The parameter "--company" Provide your company name.
# The parameter "--email" Provide your email address.
# The parameter "--installkey" Installation key provided by alachisoft.com.
RUN chmod -R 775 /app \
&& ./installncache.sh --firstname "YOUR_FIRST_NAME" --lastname "YOUR_LAST_NAME" --company "YOUR_COMPANY" --email "YOUR_EMAIL" --installkey "******" --installmode "server" \
&& rm -rf /var/lib/apt/lists/*
# Switching the current user to ncache user
USER ncache
# Entry point for the container, once all the required configurations have been made.
ENTRYPOINT ["/app/startup.sh"]
©著作権 Alachisoft 2002 - . All rights reserved. NCache はダイヤテック株式会社の登録商標です。