No description
Find a file
Seebs ea69b0637d significant refactor of test setup and teardown
We centralize the creation paths for test indexes, fields,
etcetera so they all have a common path, all using standard
test holders. There's still two versions, one for test.* functions
and one for internal. They do share a TestHolderConfig though.

Large hunks of the related APIs are simplified/streamlined.
* Fragments are always created with a Field and don't need
  a workaround in case they don't have it.
* Creation of test fragments, etc., use optional FieldOptions
  but don't specify names because they're all using new holders
  for each thing created anyway. This dramatically reduces
  the complexity of the calls.
* test fragments are created inside test views which are created
  inside test fields, etcetera, so everything is using the same
  logic; test views aren't bypassing the other layers, they're
  creating themselves normally within a field.
* Quite a few things now use the standard runtime/production
  logic instead of being custom workarounds; for instance, instead
  of `mustOpenMutexFragment` creating a fragment and then creating
  a mutex vector for it, we just create a mutex-typed field and
  have the normal runtime code do this.
* Similarly, we now use the same field creation logic that production
  does, instead of having our own test-only thing that validates
  field names directly, so our test that we're validating field names
  is actually testing the runtime code. Yay.
* fragSpec goes away. it was a replacement for fragProxy which existed
  to solve memory allocation problems but replaced them with interface
  overhead problems. Now we just have pointers to things and maintain
  valid data structures.
* Many panics are now Fatal or Fatalf calls.
* Some specific bugs fixed, like a cluster which was requested and
  then had its first node directly overwritten, which isn't valid with
  shared clusters.
* Drop the temp-dir test flag and TempDir variable, we can just use
  $TMPDIR.
* Drop a benchmark of "write file to disk" that was purely a benchmark
  of file write speed, not a benchmark of rendering the data that needs
  to be written.
* Drop the unused "flags" parameter to fragment creation, which was
  only used back when we changed the BSI format.
* Use holder.Txf() rather than index.Txf(). The TxFactory has to be
  holder-level anyway, referring to it via the index is misleading.
* Test holders automatically close themselves and delete themselves,
  we remove various other things that thought they were responsible
  for deleting themselves.
2022-09-30 11:25:27 -07:00
.github/workflows chore: creates ci.yml workflow (#2167) 2022-09-22 17:09:59 -04:00
api/client Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
authn fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
authz fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
boltdb Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
client refactor testing to share clusters more often 2022-09-30 11:10:47 -07:00
cmd cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
ctl add persistent history and combination of multi-line commands to CLI 2022-09-30 11:22:07 -07:00
debugstats Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
disco Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
encoding/proto Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
errors cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
etcd set directory permissions restrictively to quiet etcd 2022-09-30 11:25:27 -07:00
gcnotify Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
generator Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
gopsutil Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
hash fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
idk FB-1674: Kafka consumer stops reading messages from topic (#2222) 2022-09-30 11:25:27 -07:00
ingest fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
ingest_testdata Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
install Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
internal fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
lattice FB-1339 - UI - updated lodash version to fix gitlab vulnerability 2022-09-30 11:24:43 -07:00
logger fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
lru Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
mock Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
monitor Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
net Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
pb fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
pql fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
prometheus Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
proto Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
qa squash auth tests into regular smoke tests, improve smoke tests 2022-09-30 11:23:17 -07:00
rbf fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
roaring fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
scripts Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
server significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
shardwidth Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
short_txkey Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
sql cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
sql3 fb-1075 (#2221) 2022-09-30 11:25:27 -07:00
statik Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
stats significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
statsd Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
storage Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
syswrap Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
task Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
test significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
testdata refactor testing to share clusters more often 2022-09-30 11:10:47 -07:00
testhook improve post-hook behavior 2022-09-30 11:10:47 -07:00
toml Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
tracing Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
txkey Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
vprint Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
.gitignore added /sql endpoint; implemented SHOW TABLES (#1935) 2022-09-30 11:10:24 -07:00
api.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
api_test.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
apimethod_string.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
audit.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
audit_internal_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
audit_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
broadcast.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
bsi.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
bsi_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
cache.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
cache_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
catcher.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
cluster.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
cluster_internal_test.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
cmd.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
CODE_OF_CONDUCT.md Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
const_amd64.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
const_other.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
dbshard.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
dbshard_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
dbshard_test.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
delete_test.go refactor testing to share clusters more often 2022-09-30 11:10:47 -07:00
diagnostics.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
diagnostics_internal_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
doc.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
Dockerfile Updated Dockerfiles for lattice to use a publicly available container in the GitHub container registry 2022-09-08 11:05:43 -07:00
Dockerfile-clustertests Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
Dockerfile-clustertests-client Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
event.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
executor.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
executor_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
executor_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
field.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
field_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
field_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
filesystem.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
fragment.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
fragment_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
gc.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
gid.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
go.mod Fix UUID library version for CVE-2021-3538 (#2213) 2022-09-30 11:21:11 -07:00
go.sum Fix UUID library version for CVE-2021-3538 (#2213) 2022-09-30 11:21:11 -07:00
hack.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
handler.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
holder.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
holder_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
holder_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
http_handler.go fb-1075 (#2221) 2022-09-30 11:25:27 -07:00
http_handler_internal_test.go fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
http_handler_test.go refactor testing to share clusters more often 2022-09-30 11:10:47 -07:00
http_translator.go fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
http_translator_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
idalloc.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
idalloc_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
index.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
index_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
index_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
ingest_test.go fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
internal_client.go reduce verbosity of retryablehttpclient 2022-09-30 11:25:27 -07:00
internal_client_test.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
iterator.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
iterator_internal_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
LICENSE-2.0.txt Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
license.exceptions Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
like.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
like_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
main_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
Makefile added /sql endpoint; implemented SHOW TABLES (#1935) 2022-09-30 11:10:24 -07:00
metrics.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
nfpm.yaml Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
NOTICE Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
pilosa.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
pilosa_internal_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
pilosa_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
pprof.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
rbf.go fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
README.md chore:correct README typo 2022-09-02 13:58:44 -07:00
row.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
row_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
serializer.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
server.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
server_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
server_test.go refactor testing to share clusters more often 2022-09-30 11:10:47 -07:00
stattx.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
time.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
time_internal_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
tracker.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
tracker_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
transaction.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
transaction_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
translate.go fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
translator_test.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
tx.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
tx_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
tx_test.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
txfactory.go continue removing Tx parameters to view-type functions 2022-09-30 11:25:27 -07:00
txfactory_internal_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
util.go continue removing Tx parameters to view-type functions 2022-09-30 11:25:27 -07:00
util_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
utils_internal_test.go refactor testing to share clusters more often 2022-09-30 11:10:47 -07:00
version.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
view.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00
view_internal_test.go significant refactor of test setup and teardown 2022-09-30 11:25:27 -07:00

FeatureBase

Pilosa is now FeatureBase

As of September 7, 2022, the Pilosa project is now FeatureBase. The core of the project remains the same: FeatureBase is the first real-time distributed database built entirely on bitmaps. (More information about updated capabilities and improvements below.)

FeatureBase delivers low-latency query results, regardless of throughput or query volumes, on fresh data with extreme efficiency. It works because bitmaps are faster, simpler, and far more I/O efficient than traditional column-oriented data formats. With FeatureBase, you can ingest data from batch data sources (e.g. S3, CSV, Snowflake, BigQuery, etc.) and/or streaming data sources (e.g. Kafka/Confluent, Kinesis, Pulsar).

For more information about FeatureBase, please visit www.featurebase.com.

Getting Started

Build FeatureBase Server from source

  1. Install go. Ensure that your shell's search path includes the go/bin directory.
  2. Clone the FeatureBase repository (or download as zip).
  3. In the featurebase directory, run make install to compile the FeatureBase server binary. By default, it will be installed in the go/bin directory.
  4. In the idk directory, run make install to compile the ingester binaries. By default, they will be installed in the go/bin directory.
  5. Run featurebase server --handler.allowed-origins=http://localhost:3000 to run FeatureBase server with default settings (learn more about configuring FeatureBase at the link below). The --handler.allowed-origins parameter allows the standalone web UI to talk to the server; this can be omitted if the web UI is not needed.
  6. Run curl localhost:10101/status to verify the server is running and accessible.

Ingest Data and Query

  1. Run
molecula-consumer-csv \
    --index repository \
    --header "language__ID_F,project_id__ID_F" \
    --id-field project_id \
    --batch-size 1000 \
    --files example.csv

This will ingest the example.csv file into a FeatureBase table called repository. If the table does not exist, it will be automatically created. Learn more about ingesting into FeatureBase: https://docs.featurebase.com/data-ingestion/enterprise/ingesters

  1. Query your data.
curl localhost:10101/index/repository/query \
     -X POST \
     -d 'Row(example=5)'

Learn about supported SQL, native Pilosa Query Language (PQL).

Data Model

Because FeatureBase is built on bitmaps, there is bit of a learning curve to grasp how your data is represented. Data Model Guide: https://docs.featurebase.com/data-modeling-guide/data-modeling

More Information

Installation:https://docs.featurebase.com/setting-up-featurebase/enterprise/installing-featurebase

Configuration: https://docs.featurebase.com/setting-up-featurebase/enterprise/featurebase-configuration

Community

You can email us at community@featurebase.com or learn more about contributing at https://www.featurebase.com/community.

Chat with us: https://discord.gg/FBn2vEp7Na

What's Changed Since the Pilosa Days?

A lot has changed since the days of Pilosa. This list highlights some new capabilites included in FeatureBase. We have also made signficant improvements to the performance, scalability, and stability of the FeatureBase product.

  • Query Languages: FeatureBase supports Pilosa Query Language (PQL), as well as SQL
  • Stream and Batch Ingest: Combine real-time data streams with batch historical data and act on it within milliseconds.
  • Mutable: Perform inserts, updates, and deletes at scale, in real time and on-the-fly. This is key for meeting data compliance requirements, and for reflecting the constantly-changing nature of high-volume data.
  • Multi-Valued Set Fields: Store multiple comma-delimited values within a single field while increasing query performance of counts, TopKs, etc.
  • Time Quantums: Setting a time quantum on a field creates extra views which allow ranged Row queries down to the time interval specified. For example, if the time quantum is set to YMD, ranged Row queries down to the granularity of a day are supported.
  • RBF storage backend: this is a new compressed bitmap format which improves performance in a number of ways: ACID support on a per shard basis, prevents issues with the number of open files, reduces memory allocation and lock contention for reads, provides more consistent garbage collection, and allows backups to run concurrently with writes. However, because of this change, Pilosa backup files cannot be restored into FeatureBase.

License

FeatureBase is licensed under the Apache License, Version 2.0