この文章では、Linuxコマンド、sar, top, psを使って、一般的に負荷といわれるものの原因を切り分けることを目的とする。
「複数のタスクによるサーバリソースの奪い合いの結果に生じる待ち時間」を一言で表した言葉。OSのチューニングとは負荷の原因を知り、それを取り除くことにほかならない。
- ロードアベレージ(処理を実行したくても、実行できなくて待たされているプロセス(CPUの実行権限が与えられるのを待っている、またはディスクI/Oが完了するのを待っている)の数)を見る
/* | |
This example shows how you can use your data structure as a basis for | |
your Firebase security rules to implement role-based security. We store | |
each user by their Twitter uid, and use the following simplistic approach | |
for user roles: | |
0 - GUEST | |
10 - USER | |
20 - MODERATOR |
# encoding : utf-8 | |
# for python3 | |
import urllib.request | |
import os.path | |
import pyquery as pq | |
import requests | |
def download(url, folderName): | |
if not os.path.exists(folderName): | |
print (folderName + "フォルダを作成しました") |
var crypto = require('crypto'); | |
// the Base64 encoded Google Play license key / Base64-encoded RSA public key from the Google Play Dev Console | |
var publicKey = "ABCEDF1234...."; | |
/** sample | |
{ | |
"orderId":"12999763169054705758.1371079406387615", | |
"packageName":"com.example.app", | |
"productId":"exampleSku", |
## アンマネージドのインスタンスグループの作成 | |
❯ gcloud compute instance-groups unmanaged create test-uig --zone asia-northeast1-b | |
Created [https://www.googleapis.com/compute/v1/projects/k8s-day/zones/asia-northeast1-b/instanceGroups/test-uig]. | |
NAME LOCATION SCOPE NETWORK MANAGED INSTANCES | |
test-uig asia-northeast1-b zone 0 | |
## 作成したアンマネージドのインスタンスグループの確認 | |
❯ gcloud compute instance-groups unmanaged list | |
NAME ZONE NETWORK NETWORK_PROJECT MANAGED INSTANCES | |
test-uig asia-northeast1-b No 0 |
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
VStack(spacing: 0) { | |
Color.green | |
Color.green | |
Color.green | |
Color.yellow | |
Color.orange |