Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme, python2 support #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

panaceya
Copy link

@panaceya panaceya commented May 8, 2018

Readme, python2 support

try:
b = a = time.monotonic()
except (AttributeError):
import monotonic
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну это капец. при каждом бенче делать импорт.

import json
import argparse
import logging
import os
import time
import rados
import configparser
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну ведь не тестировал же. во втором питоне конфигпасер подругому называется.

В общем, про питон2 я уже пофиксил. про индентацию и пробелы по пеп8 -- пофикшу сам попозже.

# Install pre-requrements

### CentOS
`yum install python-configparser python-monotonic`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

))) он во втором питоне есть искаропки, просто подругому называется. в итоге я зарефакторил так что выпилил его использование совсем. И да, напиши для каких версий центоса это. равно как и убунту.

cd ceph-bench
ceph auth export client.admin -o keyring.conf
ceph osd pool set single size 1
ceph osd pool create single 1 1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

сначала креате, потом сет сайз.

и креате нифига не 1 1, а 128 128 или сколько там нужно.

@socketpair
Copy link
Owner

За работу спасибо, но нужны правки.

@socketpair socketpair closed this May 12, 2018
@socketpair socketpair reopened this May 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants