Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ED397200BA4 for ; Sat, 15 Oct 2016 13:32:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E88E3160AF1; Sat, 15 Oct 2016 11:32:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39F5E160AE7 for ; Sat, 15 Oct 2016 13:32:19 +0200 (CEST) Received: (qmail 78493 invoked by uid 500); 15 Oct 2016 11:32:18 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 78483 invoked by uid 99); 15 Oct 2016 11:32:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Oct 2016 11:32:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C9F821A06BD for ; Sat, 15 Oct 2016 11:32:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id taZAF9R3uHvI for ; Sat, 15 Oct 2016 11:32:15 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 493C15FAEE for ; Sat, 15 Oct 2016 11:32:15 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id c78so26006298wme.0 for ; Sat, 15 Oct 2016 04:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=9eDZelxJsy6bBr+lMpaXleWDKd7qwuHRFuGTxydAvpU=; b=Es8cTWc1RI2J30HnHwogXQ/ljAhE5qpdy3bqIzd792CtALNyWE/581SXi2apvfDXhu b9iYhEe8tkQhc4ZVe8gh4QcrYFyybgUjLBPKRVwi1YVpUvF6QdM8eMOXD8zjms7obwOh U5I2IepepkitS19BS8UlQy76D56ma2yToN26PRA1d4NJOU4j36RmoqnrCz0M5GYpgHtQ LSiXjlaEiiQqmzOT7ilzJJ0QD8H5hf++zH6SLG3HTMJSrSWPxsAqVHbVV6KjEUaNVabB hnIdxsatQzdyW8E5NEdShc3grDmceGtkrQIapDAxPuZDlth9jVt/6CSqnB0Eju9Fvmjn 4EQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=9eDZelxJsy6bBr+lMpaXleWDKd7qwuHRFuGTxydAvpU=; b=JWueL5spBMsaj5/zXgy9uwqjD+v+OM/zgF3upjBYHEKA+eL8Cj1bSpr874L3OiTYgj Disrz2zv7izsJ/JEz2q3P1gTtf8e2m6JJ82QuM9eJwafshWHz6S+P/UJAdfelIp2pWC9 mIDRzBI4VO3C65arBvlXbKCPpGTmNhKIxQNamv04rbOuVevtm2Uex2ySyg60/p8E65h2 lIu1xA4kQ/uWdXOOAbChYqN5oisFQR75rlp6nyMtRetsoMZAhn2xr3KY81xEflft7Aa7 DJlg+ognFUe7y8lqtFnG9MDVIu7tBHd60FwyT7JiofBUt09jfgs4HdN2mRPMLUAFwSl1 22ig== X-Gm-Message-State: AA6/9RkXhoxKSt3GvN8vdJIWB2GmVa7ylO9uYbVeLWrfi4iQK2f7QloU3GVScyV+anMEyg== X-Received: by 10.194.105.104 with SMTP id gl8mr5951456wjb.83.1476531131841; Sat, 15 Oct 2016 04:32:11 -0700 (PDT) Received: from [10.220.37.242] ([176.5.104.37]) by smtp.gmail.com with ESMTPSA id 124sm1699376wmc.19.2016.10.15.04.32.10 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 15 Oct 2016 04:32:10 -0700 (PDT) From: =?utf-8?Q?J=C3=B6rn_Franke?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Sat, 15 Oct 2016 13:32:10 +0200 Subject: Re: Market data binary messages processed with Ignite and Spark Message-Id: References: <1476509004979-8313.post@n6.nabble.com> In-Reply-To: <1476509004979-8313.post@n6.nabble.com> To: user@ignite.apache.org X-Mailer: iPhone Mail (14A456) archived-at: Sat, 15 Oct 2016 11:32:20 -0000 Depends how you do the lookup. Is it by ID? Then keep the ids as small as po= ssible. Lookup is fastest in a hash map type of datastructure. In case of a d= istributed setting supported by a bloom filter. Apache Ignite can be seen as suitable. Depending on what you need to do (maybe your approach requires hyperlolog st= ructured etc) you may look also at redis, but from what you describe Ignite i= s suitable. I do not think the caching of the filesystem benefits here, because the key i= s the datastructure here (hash map). The concrete physical infrastructure to meet your SLAs can only be determine= d when you experiment with real data. Maybe you can tell a little bit more about the data. Are the messages depend= ent? What type of calculation do you do? > On 15 Oct 2016, at 07:23, Pranas Baliuka wrote: >=20 > Dear Ignite enthusiasts, >=20 > I am beginner in Apache Ingnite, but want to prototype solution for using > Ignite cashes with market data distributed across multiple nodes running > Spark RDD. >=20 > I'd like to be able to send sequenced (from 1) binary messages (size from 4= 0 > bytes to max 1 Kb) to custom Spark job processing multidimensional cube of= > parameters.=20 > Each market data event must be processed once from #1 to #records for each= > parameter.=20 > Number of messages ~40-50 M in one batch. >=20 > It would be great if you can share your experience with similar imp.=20 >=20 > My high level thinking: > * Prepare system by loading Ignite Cashe (unzipping market data drop-copy > file, converting to preferred binary format and publish IgniteCache BinaryObject>; > * Spawn Spark job to process input cube of parameters (SparkRDD) each usin= g > cashed the same IgniteCashe (accessed sequentially by sequence number from= 1 > - #messages as key); > * Store results in RDMS/NoSQL storage; > * Perform reports from Apache Zeppelin using Spark.R interpreter. >=20 > I need for Cache outlive Spark jobs i.e. may run different cube of > parameters after one is finished. >=20 > I am not sure if Ignite would be able to lookup messages efficiently (I'd > need ~400 Km/s sustained retrieval).=20 > Or should I consider something more file oriented e.g. use memory mounted > file system on each node ... >=20 > Thank in advance to share your ideas/proposals/know-how! >=20 >=20 >=20 >=20 > -- > View this message in context: http://apache-ignite-users.70518.x6.nabble.c= om/Market-data-binary-messages-processed-with-Ignite-and-Spark-tp8313.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com.