This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sa@r0:~$ cat mon.log | |
cluster 2023-07-18T19:58:12.429674+0000 mgr.b (mgr.12834102) 26035 : cluster [DBG] pgmap v26600: 196 pgs: 186 unknown, 1 incomplete, 9 down; 19 B data, 1.2 GiB used, 2.3 TiB / 2.3 TiB avail | |
cluster 2023-07-18T19:58:12.609555+0000 osd.54 (osd.54) 51250 : cluster [WRN] 63 slow requests (by type [ 'queued for pg' : 63 ] most affected pool [ 'ceph-erasure-default-data' : 63 ]) | |
cluster 2023-07-18T19:58:13.625523+0000 osd.54 (osd.54) 51251 : cluster [WRN] 63 slow requests (by type [ 'queued for pg' : 63 ] most affected pool [ 'ceph-erasure-default-data' : 63 ]) | |
cluster 2023-07-18T19:58:14.430644+0000 mgr.b (mgr.12834102) 26036 : cluster [DBG] pgmap v26601: 196 pgs: 186 unknown, 1 incomplete, 9 down; 19 B data, 1.2 GiB used, 2.3 TiB / 2.3 TiB avail | |
cluster 2023-07-18T19:58:14.623314+0000 osd.54 (osd.54) 51252 : cluster [WRN] 63 slow requests (by type [ 'queued for pg' : 63 ] most affected pool [ 'ceph-erasure-default-data' : 63 ]) | |
audit 2023-07-18T19:58:14.848416+0000 mon.l (mon.2) 15413 : audi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sa@r0:~$ cat op.log | |
2023-07-18 22:32:03.463522 I | rookcmd: starting Rook v1.11.6 with arguments '/usr/local/bin/rook ceph operator' | |
2023-07-18 22:32:03.463598 I | rookcmd: flag values: --enable-machine-disruption-budget=false, --help=false, --kubeconfig=, --log-level=INFO | |
2023-07-18 22:32:03.463602 I | cephcmd: starting Rook-Ceph operator | |
2023-07-18 22:32:03.610172 I | cephcmd: base ceph version inside the rook operator image is "ceph version 17.2.6 (d7ff0d10654d2280e08f1ab989c7cdf3064446a5) quincy (stable)" | |
2023-07-18 22:32:03.620652 I | op-k8sutil: ROOK_CURRENT_NAMESPACE_ONLY="false" (env var) | |
2023-07-18 22:32:03.620675 I | operator: watching all namespaces for Ceph CRs | |
2023-07-18 22:32:03.620734 I | operator: setting up schemes | |
2023-07-18 22:32:03.624566 I | operator: setting up the controller-runtime manager | |
2023-07-18 22:32:03.635888 I | op-k8sutil: ROOK_DISABLE_ADMISSION_CONTROLLER="true" (configmap) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2023-07-18 22:12:02.421991 D | exec: Running command: ceph status --connect-timeout=15 --cluster=rook-ceph --conf=/var/lib/rook/rook-ceph/rook-ceph.config --name=client.admin --keyring=/var/lib/rook/rook-ceph/client.admin.keyring --format json | |
2023-07-18 22:12:03.028288 I | clusterdisruption-controller: osd is down in failure domain "c10-z1-sea-pahadi-net" and pgs are not active+clean. pg health: "cluster is not fully clean. PGs: [{StateName:unknown Count:186} {StateName:down Count:9} {StateName:incomplete Count:1}]" | |
2023-07-18 22:12:03.028336 D | exec: Running command: ceph osd dump --connect-timeout=15 --cluster=rook-ceph --conf=/var/lib/rook/rook-ceph/rook-ceph.config --name=client.admin --keyring=/var/lib/rook/rook-ceph/client.admin.keyring --format json | |
2023-07-18 22:12:03.436202 D | op-k8sutil: kubernetes version fetched 1.27.2 | |
2023-07-18 22:12:03.437378 D | op-k8sutil: kubernetes version fetched 1.27.2 | |
2023-07-18 22:12:03.438856 D | op-k8sutil: kubernetes version fetched 1.27.2 | |
2023-07-18 22:12:03.4399 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug -3> 2023-07-18T22:02:45.157+0000 7f5e962d9540 0 osd.52 10173 load_pgs | |
debug -2> 2023-07-18T22:02:45.157+0000 7f5e962d9540 5 osd.52 pg_epoch: 10173 pg[7.c(unlocked)] enter Initial | |
debug -1> 2023-07-18T22:02:45.161+0000 7f5e962d9540 -1 /home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.6/rpm/el8/BUILD/ceph-17.2.6/src/osd/ECUtil.h: In function 'ECUtil::stripe_info_t::stripe_info_t(uint64_t, uint64_t)' thread 7f5e962d9540 time 2023-07-18T22:02:45.160168+0000 | |
/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.6/rpm/el8/BUILD/ceph-17.2.6/src/osd/ECUtil.h: 34: FAILED ceph_assert(stripe_width % stripe_size == 0) | |
ceph version 17.2.6 (d7ff0d10654d2280e08f1ab989c7cdf3064446a5) quincy (stable) | |
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x135) [0x55aa7a1506cf] | |
2: ceph-osd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def option_fx(x, longShort: str, callPut: str, strike, cost): | |
s = strike | |
u = cost | |
if longShort == 'L': | |
if callPut == 'C': | |
return (0 if x < s else x - s) - u # Long call | |
else: | |
return (0 if x > s else s - x) - u # Long Put | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name example.com; | |
listen 80; | |
# Security: Do not allow iframe | |
add_header X-Frame-Options DENY; | |
add_header X-Content-Type-Options nosniff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Data; | |
using Microsoft.EntityFrameworkCore; | |
namespace RasuwaProfile.Repository.Extensions | |
{ | |
public static class DbContextEntensions | |
{ | |
public static IEnumerable<Dictionary<string, object>> FromDynamicStoredProc(this DbContext dbContext, string name, Dictionary<string, object> parameters = null) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bytes = new byte[40]; // byte size | |
using (var crypto = new RNGCryptoServiceProvider()) | |
crypto.GetBytes(bytes); | |
var base64 = Convert.ToBase64String(bytes); | |
Console.WriteLine(base64); | |
// Prepend with a Guid: | |
var result = Guid.NewGuid().ToString("N") + Convert.ToBase64String(bytes); | |
Console.WriteLine(result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://www.imagemagick.org/download/ImageMagick.tar.gz | |
tar -xvf ImageMagick.tar.gz | |
cd ImageMagick-7.* | |
./configure | |
make | |
sudo make install | |
sudo ldconfig /usr/local/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recursively optimize PNG and JPEG images using convert command | |
# | |
# `convert` is part of ImageMagick (http://www.imagemagick.org/). You will need to install it first. | |
# | |
# Author: Rajendra Kumar Bhochalya (http://rkb.io) | |
# | |
# @see https://developers.google.com/speed/docs/insights/OptimizeImages | |
# Optimize all JPEG images in current directory and subdirectories | |
find . -name "*.jpg" -exec convert "{}" -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace RGB "{}" \; -exec echo "{}" \; |
NewerOlder